Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

OpenStack CLI

This is my docker image I use to interact with openstack.

When you use more than one version of openstack because your doing dev work or any other reason you may need different versions of the openstack CLI clients. This can cause issues if you try to install them locally. You can use different python environments but why? We have DOCKER!

Branches

Differnt branches of this project, each with a docker file that can produce a continer with diffent versions of CLI installed. For example icehouse would have the CLI clinets for icehouse.

Usage

docker run --rm -ti -e DOCKER_USER=$USER \
                    -e OS_PROJECT_ID=$OS_PROJECT_ID \
                    -e OS_REGION_NAME=$OS_REGION_NAME \
                    -e OS_USER_DOMAIN_NAME=$OS_USER_DOMAIN_NAME \
                    -e OS_PROJECT_NAME=$OS_PROJECT_NAME \
                    -e OS_IDENTITY_API_VERSION=$OS_IDENTITY_API_VERSION \
                    -e OS_AUTH_URL=$OS_AUTH_URL \
                    -e OS_USERNAME=$OS_USERNAME \
                    -e OS_PASSWORD=$OS_PASSWORD \
    --volume $PWD:/`basename $PWD` --volume ~/:/$USER cbitter78/openstack_cli:latest

Or you can use an alias

alias os_cli='docker run --rm -ti -e DOCKER_USER=$USER -e OS_PROJECT_ID=$OS_PROJECT_ID -e OS_REGION_NAME=$OS_REGION_NAME -e OS_USER_DOMAIN_NAME=$OS_USER_DOMAIN_NAME -e OS_PROJECT_NAME=$OS_PROJECT_NAME -e OS_IDENTITY_API_VERSION=$OS_IDENTITY_API_VERSION -e OS_AUTH_URL=$OS_AUTH_URL -e OS_USERNAME=$OS_USERNAME -e OS_PASSWORD=$OS_PASSWORD --volume $PWD:/`basename $PWD` --volume ~/:/$USER cbitter78/openstack_cli:latest'

This will start the docker container and give you a shell with your home folder mounted under / and all the needed env vars passed.

Docker Pull Command
Owner
mfranc213

Comments (0)