-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the cloud-portal-client wiki!
There are 2 ways to run the cloud-portal-client.
You will need a docker
service up and running and docker-compose
to start the solution:
You can find a detailed instruction how to install docker on https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-docker-ce
Once docker is installed and running and docker-compose is installed as well, clone the repository with your SSH key:
$> git clone https://github.com/deNBI/cloud-portal-client.git
Enter the new directory called cloud-portal-client
$> cd ./cloud-portal
Since the current version is developed in the dev_thrift branch you need to checkout it manually:
$>git checkout dev_thrift
Attention: You need to create your own Server.pem
, Client.pem
, CA.pem
for testing / play around purposes only.
To create your own certificates follow the instructions on this Website: https://thrift.apache.org/test/keys
To start application your terminal need to be in the 'cloud-portal-client' folder then excecute the following commands
$> sudo docker-compose build
$> sudo docker-compose up
Before starting the client you need to set your configuration in the config.py file. located in cloud-portal-client/gen-py/VirtualMachineService/config.py
- test
- username = your openstack username
- password = your openstack password
- network = network to connect
- auth_url= your project --> access & security --> view Credentials --> Authentication URL
- project_name = name of the project to connect
- user_domain_name = default or your settings
- project_domain_name = default or your settings
- server_port = port to host
- server_host= host ip
- server_cert= path to server.pem
you will need to have python 3.6 and pip installed.
Linux: sudo apt-get install python3.6
Linux: sudo apt-get install -y python3-pip
Once Python and pip is installed, clone the repository with your SSH key:
$> git clone https://github.com/deNBI/cloud-portal-client.git
Enter the new directory called cloud-portal-client
$> cd ./cloud-portal
Since the current version is developed in the dev_thrift branch you need to checkout it manually:
$>git checkout dev_thrift
Attention: You need to create your own Server.pem
, Client.pem
, CA.pem
for testing / play around purposes only.
To create your own certificates follow the instructions on this Website: https://thrift.apache.org/test/keys
to install all required python libraries run the following command:
$> pip install -r requirements.txt
to finally run the code you need to change the directory and run the right python file.
$> cd ./gen-py/VirtualMachineService
$> python3 VirtualMachineServer.py
Before starting the client you need to set your configuration in the config.py file. located in cloud-portal-client/gen-py/VirtualMachineService/config.py
*username = your openstack username *password = your openstack password *network = network to connect *auth_url= your project --> access & security --> view Credentials --> Authentication URL *project_name = name of the project to connect *user_domain_name = default or your settings *project_domain_name = default or your settings *server_port = port to host *server_host= host ip *server_cert= path to server.pem