OpenStackClient (aka OSC) is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Object Store and Block Storage APIs together in a single shell with a uniform command structure.
The primary goal is to provide a unified shell command structure and a common language to describe operations in OpenStack.
GitHub Projects :
docker run --rm oxeva/openstack-client openstack --help
The default command is openstack, so you can run it interactively as described in the official OpenStack documentation...
Source your openstack connection parameters from the openstack rc file you downloaded from horizon, then share the environment variables to the container :
source ~/my/openstack.rc
docker run --rm \
-e OS_AUTH_URL=$OS_AUTH_URL \
-e OS_PROJECT_ID=$OS_PROJECT_ID \
-e OS_PROJECT_NAME=$OS_PROJECT_NAME \
-e OS_USER_DOMAIN_NAME=$OS_USER_DOMAIN_NAME \
-e OS_PROJECT_DOMAIN_ID=$OS_PROJECT_DOMAIN_ID \
-e OS_USERNAME=$OS_USERNAME \
-e OS_PASSWORD=$OS_PASSWORD \
-e OS_REGION_NAME=$OS_REGION_NAME \
-e OS_INTERFACE=$OS_INTERFACE \
-e OS_IDENTITY_API_VERSION=$OS_IDENTITY_API_VERSION \
oxeva/openstack-client openstack stack list
We recommand You add it to your alias file :
alias openstack='docker run --rm -it -e OS_AUTH_URL=$OS_AUTH_URL -e OS_PROJECT_ID=$OS_PROJECT_ID -e OS_PROJECT_NAME=$OS_PROJECT_NAME -e OS_USER_DOMAIN_NAME=$OS_USER_DOMAIN_NAME -e OS_PROJECT_DOMAIN_ID=$OS_PROJECT_DOMAIN_ID -e OS_USERNAME=$OS_USERNAME -e OS_PASSWORD=$OS_PASSWORD -e OS_REGION_NAME=$OS_REGION_NAME -e OS_INTERFACE=${OS_INTERFACE:-public} -e OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-3} -v $(pwd):/workdir -w /workdir oxeva/openstack-client openstack'
NB : We mount the local directory in the work directory to be able to call local files as heat templates.
Content type
Image
Digest
Size
362.2 MB
Last updated
over 7 years ago
docker pull oxeva/openstack-client