diff --git a/docker/keystone/Dockerfile b/docker/keystone/Dockerfile index c120b91885..3192d30bae 100644 --- a/docker/keystone/Dockerfile +++ b/docker/keystone/Dockerfile @@ -2,10 +2,13 @@ FROM kollaglue/fedora-rdo-base MAINTAINER Lars Kellogg-Stedman #Install required packages +RUN yum -y install dnf dnf-plugins-core; yum clean all +RUN dnf copr enable -y larsks/crux RUN yum install -y openstack-keystone \ openstack-utils \ mariadb \ - && yum clean all + crux \ + ; yum clean all ADD ./start.sh /start.sh diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh index 657770c894..6e0ff7cd74 100755 --- a/docker/keystone/start.sh +++ b/docker/keystone/start.sh @@ -2,82 +2,75 @@ # Exit the container if MariaDB is not yet up - then depend on kube to restart if [ -z "$MARIADBMASTER_PORT_3306_TCP_PORT" ]; then - exit 1 + exit 1 fi : ${KEYSTONE_ADMIN_PASSWORD:=kolla} : ${ADMIN_TENANT_NAME:=admin} if ! [ "$KEYSTONE_ADMIN_TOKEN" ]; then - KEYSTONE_ADMIN_TOKEN=$(openssl rand -hex 15) + KEYSTONE_ADMIN_TOKEN=$(openssl rand -hex 15) fi if ! [ "$KEYSTONE_DB_PASSWORD" ]; then - KEYSTONE_DB_PASSWORD=$(openssl rand -hex 15) + KEYSTONE_DB_PASSWORD=$(openssl rand -hex 15) fi mysql -h ${MARIADBMASTER_PORT_3306_TCP_ADDR} -u root -p${DB_ROOT_PASSWORD} mysql <