24 lines
802 B
Docker
24 lines
802 B
Docker
FROM centos:7
|
|
|
|
ENV PROJECT=keystone
|
|
ARG DOCKER_REPO=yaodu/openstack-requirements
|
|
ARG DOCKER_TAG=centos
|
|
ARG WHEELS
|
|
ARG GIT_REPO=https://github.com/openstack/${PROJECT}
|
|
ARG GIT_REF
|
|
ARG GIT_REF_REPO=https://git.openstack.org/openstack/${PROJECT}
|
|
ARG SCRIPTS=https://github.com/yaodu/common/archive/0.1.2.tar.gz
|
|
|
|
RUN set -x \
|
|
&& yum install --setopt=tsflags=nodocs -y python curl \
|
|
&& curl -sSL $SCRIPTS | tar xz -C /tmp/ --strip-components=2 \
|
|
&& /tmp/download.sh $DOCKER_REPO $DOCKER_TAG $WHEELS \
|
|
&& /tmp/install.sh $PROJECT $GIT_REPO $GIT_REF_REPO $GIT_REF \
|
|
&& yum install --setopt=tsflags=nodocs -y \
|
|
httpd \
|
|
mod_ssl \
|
|
mod_wsgi \
|
|
&& rm /etc/httpd/conf.d/* \
|
|
&& sed -i 's/^Listen 80/#Listen 80/' /etc/httpd/conf/httpd.conf \
|
|
&& /tmp/cleanup.sh
|