Project

General

Profile

Task #7112

Userguide for ucloud

Added by Ahmed Bilal 20 days ago. Updated 7 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
09/03/2019
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

"how to use ucloud"? from user's perspective.
With starting to install the CLI, getting a seed, etc?

History

#2

Updated by Ahmed Bilal 19 days ago

  • Assignee changed from Ahmed Bilal to Nico Schottelius
  • Status changed from New to Feedback
#3

Updated by Nico Schottelius 13 days ago

  • Assignee changed from Nico Schottelius to Mondi Ravi

Can you proof read it && give Ahmed feedback?

#4

Updated by Mondi Ravi 7 days ago

  • Status changed from Feedback to In Progress

Oops, I seem to have missed this. Doing it right now.

#5

Updated by Mondi Ravi 7 days ago

  • Assignee changed from Mondi Ravi to Ahmed Bilal
  • Status changed from In Progress to New

Looks good to me for a first version.

Some points I don't understand/did not find/improvements in the doc are:

- As a user, would I need to specify UCLOUD_API_SERVER ? If yes, I think its missing
- I think we already discussed this in ucloud channel, USERNAME/REALM/SEED would need to goto somewhere ~/.ucloud
- Streamline/make the installation of ucloud simpler ?

#6

Updated by Ahmed Bilal 7 days ago

As a user, would I need to specify UCLOUD_API_SERVER ? If yes, I think its missing

I think we already discussed this in ucloud channel, USERNAME/REALM/SEED would need to goto somewhere ~/.ucloud

It is already implemented (name, realm and seed is added now)

git clone https://code.ungleich.ch/ucloud/ucloud-setup

(cd ucloud-setup && pipenv run python ucloud-setup.py cli setup --path /root --api_server http://[2a0a:e5c0:0:2:0:b3ff:fe39:7994]:5000 --name xxxx --realm xxxx --seed xxx))

Streamline/make the installation of ucloud simpler

It is mostly streamlined. I will make it more simpler soon.

# Only needed on alpine
apk add git

git clone https://code.ungleich.ch/ungleich-public/ucloud-setup; cd ucloud-setup; sh ./init.sh

pipenv run python ucloud-setup.py api setup --auth_name xxxxxxxxxx --auth_realm xxxxxxxxxx \
--auth_seed xxxxxxxxxxx --realm_allowed ungleich-admin --realm_allowed ungleich-user --path ../ --etcd_url [2a0a:e5c0:0:2:0:b3ff:fe39:7994]

pipenv run python ucloud-setup.py scheduler setup --vm_prefix /v1/vm --host_prefix /v1/host \
--request_prefix /v1/request --path ../ --etcd_url [2a0a:e5c0:0:2:0:b3ff:fe39:7994]

pipenv run python ucloud-setup.py host setup --path ../ --ssh_username abc \
--ssh_key_path ~/.ssh/id_rsa --ssh_key_pass meow --etcd_url [2a0a:e5c0:0:2:0:b3ff:fe39:7994]

pipenv run python ucloud-setup.py file-scan setup --path ../ --base_dir /var/www \
--file_prefix /v1/file --etcd_url [2a0a:e5c0:0:2:0:b3ff:fe39:7994]

pipenv run python ucloud-setup.py image setup --path ../ --base_dir /var/www --etcd_url [2a0a:e5c0:0:2:0:b3ff:fe39:7994]

(cd ~/ucloud-api && pipenv run python ~/ucloud-api/create_image_store.py)

pipenv run python ucloud-setup.py cli setup --path /root --api_server http://[2a0a:e5c0:0:2:0:b3ff:fe39:7994]:5000 --name xxxx --realm xxxx --seed xxx

Also available in: Atom PDF