From bb03caf94de4ad884e308dbce4992e370638d629 Mon Sep 17 00:00:00 2001 From: Rashmi Pujar Date: Fri, 24 Jan 2020 15:34:04 -0500 Subject: Parameterize mvn repo urls and proxy settings This allows the users to build the docker images for drools-pdp and drools-application using their own CI pipelines if needed. Issue-ID: POLICY-2330 Signed-off-by: Rashmi Pujar Change-Id: I9ea0161b45d504be4e65a21c95e48dee4a78de3a --- packages/docker/src/main/docker/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/docker/src') diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile index 935ea645..4c9cc9fc 100644 --- a/packages/docker/src/main/docker/Dockerfile +++ b/packages/docker/src/main/docker/Dockerfile @@ -5,6 +5,9 @@ LABEL maintainer="Policy Team" ARG BUILD_VERSION_DROOLS=${BUILD_VERSION_DROOLS} ARG POLICY_LOGS=/var/log/onap/policy/pdpd ARG POLICY_INSTALL=/tmp/policy-install +ARG MVN_SNAPSHOT_REPO_URL +ARG MVN_RELEASE_REPO_URL +ARG http_proxy ENV BUILD_VERSION_DROOLS $BUILD_VERSION_DROOLS ENV POLICY_INSTALL $POLICY_INSTALL @@ -13,6 +16,9 @@ ENV POLICY_LOGS $POLICY_LOGS ENV POLICY_CONFIG $POLICY_HOME/config ENV POLICY_LOGBACK $POLICY_CONFIG/logback.xml ENV POLICY_DOCKER true +ENV MVN_SNAPSHOT_REPO_URL $MVN_SNAPSHOT_REPO_URL +ENV MVN_RELEASE_REPO_URL $MVN_RELEASE_REPO_URL +ENV http_proxy $http_proxy RUN apt-get install -y \ mariadb-client \ -- cgit 1.2.3-korg