hpc-cloud/roles/keystone/files/Dockerfile

26 lines
701 B
Docker

# Build keystone. It needs to be run with
# --add-host=mariadb:<ip mariadb listens tp>
# Wen starting with an initialized db,
# run keystone-manage db_sync from this docker first:
# $ docker run hpc/keystone --add-host=mariadb:<ip mariadb> "keystone-manage db_sync"
# wellicht ubuntu 16.04 of anders 18.04
FROM ubuntu:zesty
RUN apt-get update
RUN apt-get install --yes keystone python-openstackclient
# set admin token TODO: make this a secret
# in volume of met env
ADD keystone.conf /etc/keystone/keystone.conf
RUN mkdir /etc/keystone/fernet-keys
RUN chown keystone: /etc/keystone/fernet-keys
COPY admin-openrc.sh root/admin-openrc.sh
#RUN keystone-manage db_sync
CMD apachectl -DFOREGROUND