34 lines
958 B
Docker
34 lines
958 B
Docker
FROM ubuntu:xenial
|
|
|
|
ENV PATH=/var/lib/openstack/bin:$PATH
|
|
ENV PROJECT=neutron
|
|
ARG WHEELS=openstackloci/requirements:ubuntu
|
|
ARG PROJECT_REPO=https://git.openstack.org/openstack/${PROJECT}
|
|
ARG PROJECT_REF=master
|
|
ARG SCRIPTS_REPO=https://github.com/openstack/loci
|
|
ARG SCRIPTS_REF=master
|
|
ARG OVERRIDE=override
|
|
|
|
ADD $OVERRIDE /
|
|
|
|
RUN set -x \
|
|
&& apt-get update \
|
|
&& apt-get dist-upgrade -y \
|
|
&& apt-get install -y --no-install-recommends git ca-certificates \
|
|
bridge-utils \
|
|
conntrack \
|
|
dnsmasq \
|
|
dnsmasq-utils \
|
|
ebtables \
|
|
iproute2 \
|
|
ipset \
|
|
iptables \
|
|
iputils-arping \
|
|
keepalived \
|
|
openvswitch-switch \
|
|
uuid-runtime \
|
|
&& 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/install.sh
|