diff options
Diffstat (limited to 'conductor/docker/Dockerfile')
-rwxr-xr-x | conductor/docker/Dockerfile | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/conductor/docker/Dockerfile b/conductor/docker/Dockerfile index 693e458..0222c9f 100755 --- a/conductor/docker/Dockerfile +++ b/conductor/docker/Dockerfile @@ -16,17 +16,28 @@ # ------------------------------------------------------------------------- FROM python:2.7 + +ARG MVN_ARTIFACT_VERSION +ARG REPO +ARG HTTP_PROXY=${HTTP_PROXY} +ARG HTTPS_PROXY=${HTTPS_PROXY} + +ENV http_proxy $HTTP_PROXY +ENV https_proxy $HTTPS_PROXY ENV CON_ADDR "127.0.0.1" ENV CON_PORT "8091" -EXPOSE 8091 +EXPOSE ${CON_PORT} RUN apt-get update && apt-get --assume-yes install python-setuptools && \ -apt-get install -y unzip && \ -apt-get install -y curl && \ -apt-get install -y wget +apt-get install -y unzip curl wget git vim + +# HAS +WORKDIR /opt/has +RUN wget -O /opt/has.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.optf.has&a=optf-has-conductor&e=zip&v=${MVN_ARTIFACT_VERSION}" && \ + unzip -q -o -B /opt/has.zip -d /opt/has && \ + rm -f /opt/has.zip +RUN mkdir -p /var/log/onap/optf/has/ -RUN git clone https://gerrit.onap.org/r/optf/has \ - && git checkout beijing -RUN cd ./has/conductor/ && pip install -e . +RUN cd /opt/has/conductor/ && git init && pip install -e . COPY api_paste.ini /usr/local/bin/api_paste.ini |