This provides a ready-to-use OpenStack (Pike) Keystone docker container
10K+
This provides an OpenStack (Pike) Keystone docker container
docker build -t obedmr/keystone .
docker pull obedmr/keystone
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=keystone -e MYSQL_USER=keystone -e MYSQL_PASSWORD=secret -d mariadb
docker run -d -p 5000:5000 -p 35357:35357 --link mariadb:mariadb -e DATABASE_HOST=mariadb -e KEYSTONE_DB_USER=keystone -e KEYSTONE_DB_PASSWORD=secret -e KEYSTONE_DB_NAME=keystone --name keystone obedmr/keystone
docker exec -it keystone bash
# Inside the container
root@26bd2b8a8a60 /root # source openrc
openstack user list
+----------------------------------+-------+
| ID | Name |
+----------------------------------+-------+
| 24620586335a473fb56fc2be2f6bfb53 | admin |
+----------------------------------+-------+
DATABASE_HOST
Database (MariaDB) hostKEYSTONE_DB_USER
Database username that has access to Keystone databaseKEYSTONE_DB_PASSWORD
Database password for the user that has access to Keystone databaseKEYSTONE_DB_NAME
Keystone database nameOnce keystone container is up and running you can trigger custom scripts. You just need to add the following volume line in the Start Keystone container section
-v <path>/custom-post-keystone-script.sh:/usr/bin/post-keystone.sh
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg
Content type
Image
Digest
Size
173 MB
Last updated
about 8 years ago
docker pull obedmr/keystone