34 lines
990 B
Docker
34 lines
990 B
Docker
FROM centos:7
|
|
|
|
ENV PROJECT=neutron
|
|
ARG DOCKER_REPO=yaodu/openstack-requirements
|
|
ARG DOCKER_TAG=centos
|
|
ARG WHEELS
|
|
ARG GIT_REPO=https://git.openstack.org/openstack/${PROJECT}
|
|
ARG GIT_REF
|
|
ARG GIT_REF_REPO=https://git.openstack.org/openstack/${PROJECT}
|
|
ARG SCRIPTS_REPO=https://github.com/openstack/loci
|
|
ARG SCRIPTS_REF=master
|
|
ARG OVERRIDE=override
|
|
|
|
ADD $OVERRIDE /
|
|
|
|
RUN set -x \
|
|
&& yum install --setopt=tsflags=nodocs -y python curl git \
|
|
&& git init /tmp/common/ \
|
|
&& git --git-dir /tmp/common/.git fetch --depth 1 $SCRIPTS_REPO $SCRIPTS_REF \
|
|
&& git --work-tree /tmp/common --git-dir /tmp/common/.git checkout FETCH_HEAD \
|
|
&& /tmp/common/scripts/download.sh \
|
|
&& /tmp/common/scripts/install.sh \
|
|
&& yum install --setopt=tsflags=nodocs -y \
|
|
bridge-utils \
|
|
conntrack-tools \
|
|
dnsmasq \
|
|
dnsmasq-utils \
|
|
ebtables \
|
|
ipset \
|
|
keepalived \
|
|
openvswitch \
|
|
uuid \
|
|
&& /tmp/common/scripts/cleanup.sh
|