loci/Dockerfile
Thiago Brito efccd0a853 Specify a different source for novnc/spice-html5
The StarlingX project is seen some intermittence on the gitlab where
spice-html5 source is being cloned from and we would like to select a
different source. This changes gives the option to overwrite the source
repos and versions of both spice-html5 and novnc.

This will also provide the means to easily test new versions of those
libraries when in the event of an upversion.

Partial-Bug: #1956173
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I3001dad62a0caed26347dcb193d101c80901b5d8
2022-01-12 14:45:16 +00:00

36 lines
892 B
Docker

ARG FROM=ubuntu:focal
FROM ${FROM}
ENV PATH=/var/lib/openstack/bin:$PATH
ARG PROJECT
ARG WHEELS=loci/requirements:master-ubuntu
ARG PROJECT_REPO=https://opendev.org/openstack/${PROJECT}
ARG PROJECT_REF=master
ARG PROJECT_RELEASE=master
ARG DISTRO
ARG PROFILES
ARG PIP_PACKAGES=""
ARG PIP_ARGS=""
ARG PIP_WHEEL_ARGS=$PIP_ARGS
ARG DIST_PACKAGES=""
ARG PLUGIN=no
ARG PYTHON3=indeed
ARG EXTRA_BINDEP=""
ARG EXTRA_PYDEP=""
ARG REGISTRY_PROTOCOL="detect"
ARG REGISTRY_INSECURE="False"
ARG KEEP_ALL_WHEELS="False"
ARG UID=42424
ARG GID=42424
ARG NOVNC_REPO=${NOVNC_REPO:-https://github.com/novnc/novnc}
ARG NOVNC_REF=${NOVNC_REF:-v1.0.0}
ARG SPICE_REPO=${SPICE_REPO:-https://gitlab.freedesktop.org/spice/spice-html5.git}
ARG SPICE_REF=${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