diff options
| author | root <root@host118.rhc.lab.eng.bos.redhat.com> | 2014-09-17 22:03:46 -0400 |
|---|---|---|
| committer | root <root@host118.rhc.lab.eng.bos.redhat.com> | 2014-09-17 22:03:46 -0400 |
| commit | 2a27886421570fd78fcc3f847cb640464b8377ef (patch) | |
| tree | 64f0ad4bbfa3349baf27f6770192f21dd5f6e15b /docker/keystone/Dockerfile | |
| parent | cabedebe1a5ee81210fb6c4ac291b87d32691195 (diff) | |
| download | kolla-2a27886421570fd78fcc3f847cb640464b8377ef.tar.gz kolla-2a27886421570fd78fcc3f847cb640464b8377ef.zip | |
adding things
Diffstat (limited to 'docker/keystone/Dockerfile')
| -rw-r--r-- | docker/keystone/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/keystone/Dockerfile b/docker/keystone/Dockerfile new file mode 100644 index 000000000..5eb45d814 --- /dev/null +++ b/docker/keystone/Dockerfile @@ -0,0 +1,23 @@ +FROM rhel7 +MAINTAINER jlabocki@redhat.com + +# This Dockerfile installs the components of Keystone in a docker image as a proof of concept +RUN date > /root/date + +#Install required packages +RUN yum install -y wget procps-ng net-tools && yum clean all +RUN yum install -y openstack-keystone openstack-utils openstack-selinux mariadb-galera-server socat && yum clean all + +#Service token stuff +RUN export SERVICE_TOKEN=$(/usr/bin/openssl rand -hex 10) && /usr/bin/echo $SERVICE_TOKEN > /root/ks_admin_token && openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_token $SERVICE_TOKEN && echo "export SERVICE_TOKEN=`cat /root/ks_admin_token`" > /root/ks_admin && echo "export SERVICE_ENDPOINT=\"http://127.0.0.1:35357/v2.0\"" >> /root/ks_admin + +#Eventually use rabbitmq-server (externally, but who knows, this might work too some day) +#RUN yum install -y rabbitmq-server +#RUN yum install -y mariadb-galera-server + +#Eventually use optimizied systemd for containers and use this to enable the service and start it +#RUN yum install systemd-container + +ADD ./start /usr/bin/run + +CMD ["/usr/bin/run"] |
