Without this patch, it is not possible to have your own bindep or pydep file, and you must rely on what is in tree. This is a problem for deployers that want to bring their own bindep file, as they would need to fork the repository or 'taint it' by altering its content before building. This patch introduces new parameters, EXTRA_BINDEP and EXTRA_PYDEP, whose contents are path of files to be copied into the containers. These parameters will be chained (added on top of) the default *dep files. In the current status Docker doesn't allow multiple files to be passed as argument, and therefore the ability of overrides is limited, but should be enough to allow deployers to provide ONE file on top of existing bindep/pydeps. Change-Id: I7e9f7954bb3c31dd8fee87c253a8768c6ec52b5c
31 lines
692 B
Docker
31 lines
692 B
Docker
ARG FROM=ubuntu:xenial
|
|
FROM ${FROM}
|
|
|
|
ENV PATH=/var/lib/openstack/bin:$PATH
|
|
ARG PROJECT
|
|
ARG WHEELS=loci/requirements:master-ubuntu
|
|
ARG PROJECT_REPO=https://git.openstack.org/openstack/${PROJECT}
|
|
ARG PROJECT_REF=master
|
|
ARG DISTRO
|
|
ARG PROFILES
|
|
ARG PIP_PACKAGES=""
|
|
ARG PIP_ARGS=""
|
|
ARG DIST_PACKAGES=""
|
|
ARG PLUGIN=no
|
|
ARG PYTHON3=no
|
|
ARG EXTRA_BINDEP=""
|
|
ARG EXTRA_PYDEP=""
|
|
|
|
ARG UID=42424
|
|
ARG GID=42424
|
|
|
|
ARG NOVNC_REPO=https://github.com/novnc/novnc
|
|
ARG NOVNC_REF=v1.0.0
|
|
ARG SPICE_REPO=https://gitlab.freedesktop.org/spice/spice-html5.git
|
|
ARG SPICE_REF=spice-html5-0.1.6
|
|
|
|
COPY scripts /opt/loci/scripts
|
|
ADD bindep.txt pydep.txt $EXTRA_BINDEP $EXTRA_PYDEP /opt/loci/
|
|
|
|
RUN /opt/loci/scripts/install.sh
|