Files
dockerfiles/keystone
Obed N Munoz 33ed02ec9c travis: Add initial CI integration
We need an automated way of testing our new Docker containers in
order to make sure content is working as expected.

This commits introduces initial tests for Keystone docker container.

Signed-off-by: Obed N Munoz <obed.n.munoz@intel.com>
2016-11-16 16:37:12 -06:00
..
2016-08-24 15:28:44 -05:00
2016-08-23 16:03:28 -05:00
2016-08-23 15:49:42 -05:00
2016-08-25 09:15:41 -05:00
2016-10-21 09:49:23 -05:00

Keystone with SSL

This provides a SSL-enabled Keystone docker container

Build

docker build -t clearlinux/keystone .

Or just pull it from Dockerhub

docker pull clearlinux/keystone

Create Keystone SSL certificates

YOUR_HOST=`hostname -f`
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout keystone_key.pem \
	-out keystone_cert.pem -subj "/CN=$YOUR_HOST"

Start Keystone container

YOUR_HOST=`hostname -f`
MYSQL_DATA_DIR=/var/lib/mysql/
docker run -d -it --name keystone -p 5000:5000 -p 35357:35357 \
       -e IDENTITY_HOST="$YOUR_HOST" \
       -e KEYSTONE_ADMIN_PASSWORD="secret" \
       -v $MYSQL_DATA_DIR:/var/lib/mysql \
       -v `pwd`/keystone_cert.pem:/etc/nginx/ssl/keystone_cert.pem \
       -v `pwd`/keystone_key.pem:/etc/nginx/ssl/keystone_key.pem \
       clearlinux/keystone

Login into Keystone container

docker exec -it  keystone bash
# Inside the container
root@26bd2b8a8a60 /root # source openrc
openstack user list
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 24620586335a473fb56fc2be2f6bfb53 | admin |
+----------------------------------+-------+

Environment Variables

  • IDENTITY_HOST Identity (Keystone) host
  • (Optional) KEYSTONE_ADMIN_PASSWORD Keystone Admin user password. Default: bb915e9ce0ae4b46e82a069b2ef0f8d7

Extra Build ARGs

  • swupd_args Specifies SWUPD flags

Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg