for example, in order to speed up, use the mirror of pypi: --build-arg PIP_ARGS="-i https://pypi.tuna.tsinghua.edu.cn/simple" Change-Id: I7f975c04c4dfd5b18d37a3f4b152a053374a79aa
29 lines
611 B
Docker
29 lines
611 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 UID=42424
|
|
ARG GID=42424
|
|
|
|
ARG NOVNC_REPO=https://github.com/novnc/novnc
|
|
ARG NOVNC_REF=v1.0.0
|
|
ARG SPICE_REPO=https://github.com/SPICE/spice-html5
|
|
ARG SPICE_REF=spice-html5-0.1.6
|
|
|
|
COPY scripts /opt/loci/scripts
|
|
COPY bindep.txt pydep.txt /opt/loci/
|
|
|
|
RUN /opt/loci/scripts/install.sh
|