a6b56b201d
This is to be picked up in install.sh (and potentially other scripts if needed). The scripts will attempt to determine this automatically using /etc/*release in the case this is not specified (default behaviour). Change-Id: Id8a36c73217a13f91e9df0c0cbed5fa7b7b2d5c2
26 lines
757 B
Docker
26 lines
757 B
Docker
ARG FROM=ubuntu:xenial
|
|
FROM ${FROM}
|
|
|
|
ENV PATH=/var/lib/openstack/bin:$PATH
|
|
ENV PROJECT=cinder
|
|
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
|
|
ARG DISTRO
|
|
|
|
ADD $OVERRIDE /
|
|
|
|
RUN set -x \
|
|
&& apt-get update \
|
|
&& apt-get dist-upgrade -y \
|
|
&& apt-get install -y --no-install-recommends git \
|
|
ca-certificates \
|
|
libxml2 \
|
|
&& 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
|