
this patch introduces the "crux" [1] tool for creating keystone users, services, and endpoints in an idempotent fashion. E.g., to create a user that doesn't exist: $ crux user-create -n lars -t lars -p secret creating new tenant created tenant lars (d74cec5023c4428da533066bb11943db) creating new user lars created user lars (adf2c2d92e894a3d90a403c5885f192e) And performing the same operation a second time: $ crux user-create -n lars -t lars -p secret using existing tenant lars (d74cec5023c4428da533066bb11943db) using existing user lars (adf2c2d92e894a3d90a403c5885f192e) The behavior is similar for creating keystone endpoints. [1]: https://github.com/larsks/crux Change-Id: I694e0c1bdcdde595e1af2ee8ef5d0f239a9ad4cd
18 lines
358 B
Docker
18 lines
358 B
Docker
FROM kollaglue/fedora-rdo-base
|
|
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com>
|
|
|
|
#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 \
|
|
crux \
|
|
; yum clean all
|
|
|
|
ADD ./start.sh /start.sh
|
|
|
|
EXPOSE 5000 35357
|
|
|
|
CMD ["/start.sh"]
|