Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Implementation of Openstack CLI in a container

License

Notifications You must be signed in to change notification settings

lpsouza/openstack-client-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Openstack CLI

This is a implementation of Openstack CLI commands in a container.

Versions supported

Usage

Create a openrc file with this config:

export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=YoUrPaSsWoRd
export OS_AUTH_URL=http://your-keystone-endpoint
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

After that, just execute this docker container:

docker run --rm -ti -v $PWD/your-openrc-file:/openstack/openrc lpsouza/openstack-cli your openstack command

Example:

docker run --rm -ti -v $PWD/admin-openrc:/openstack/openrc lpsouza/openstack-cli server list