Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

BBVA/osc-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Docker Pulls Docker Stars Docker Layering

Docker Image for Openstack clients (osc-docker)

Docker container with Openstack python clients

How To

First of all, you need to get your Openstack credentials at :

https://dashboard.cloud.bbva.com/dashboard/project/access_and_security/api_access/openrc/

WARNING: If you have more than one tenant/project in Openstack then you should login in our Openstack dashboard and select the desired tenant, otherwise the downloaded credentials belong to default tenant.

Now run a docker container using this image (build it locally or download from dockerhub.com: bbvalabs/osc-docker) and the downloaded credentials file ( <tenant_name>-openrc.sh ), when the container is running then you will can use a full set of openstack python clients tested for EuroCloud.

This example shows how to run the container:

$ docker run --name osc -it -d -v $(pwd)/<tenant_name>-openrc.sh:/root/<tenant_name>-openrc.sh bbvalabs/osc-docker
$ docker attach osc
~ # source <tenant_name>-openrc.sh
Please enter your OpenStack Password:
...type your password...
~ # nova list
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------------------+
| ID                                   | Name                                                  | Status | Task State | Power State | Networks                                     |
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------------------+
| b73511eb-8bfa-46ab-af55-78ec32c26bee | ba-ehcgrojgifce-0-qjfka5selicr-kube_node-w7nvwkmtn6zu | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.33               |
| d384ca54-4915-4a87-bef8-1f780b8a963a | ba-ehcgrojgifce-1-uxrjhuapxddw-kube_node-zytvulipycst | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.30               |
| 737fb2ed-6e28-4f0f-ba71-58dedce2369a | ba-ehcgrojgifce-2-piotgd2xbhen-kube_node-4la473wpcwni | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.34               |
| 8a3157a7-2adc-4355-b9d1-1c4c05cbd9d0 | ba-ehcgrojgifce-3-o5g5bdnm2g6i-kube_node-yrkqhlu5rbsc | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.32               |
| cff35d05-fcaf-44ac-883c-1e721b91dd25 | ba-ehcgrojgifce-4-fd7q3kyzfb7x-kube_node-olnfydbnljrm | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.31               |
| ccbca5b3-b86e-4d0b-849f-df5f77e2d2ba | ba-ehcgrojgifce-5-7dahx2lmbpfd-kube_node-4isvdpkmlzca | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.35               |
| d69d72f2-d223-4035-9307-2de4e9cd2f90 | ba-ehcgrojgifce-6-z2bhquna5dfe-kube_node-rgrkwyabt6qn | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.36               |
| 3468b91d-6ba0-46c8-8278-355b19db7016 | bay-k8s-czy4er4pucir-kube_master-oqhdsyhcopei         | ACTIVE | -          | Running     | Subnet Template 0=10.79.118.29, 185.24.5.220 |
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+----------------------------------------------+
~ # magnum bay-list
+--------------------------------------+---------+------------+-----------------+
| uuid                                 | name    | node_count | status          |
+--------------------------------------+---------+------------+-----------------+
| 4dd03554-b0c6-452e-ada1-6634127f1be7 | bay-k8s | 7          | UPDATE_COMPLETE |
+--------------------------------------+---------+------------+-----------------+

Releases

No releases published

Packages

No packages published