diff options
author | Rashmi Pujar <rashmi.pujar@bell.ca> | 2020-01-24 15:34:04 -0500 |
---|---|---|
committer | Rashmi Pujar <rashmi.pujar@bell.ca> | 2020-01-29 16:08:36 -0500 |
commit | bb03caf94de4ad884e308dbce4992e370638d629 (patch) | |
tree | d5083374fff40b9cd96870b9a5d44919071ba3e3 /packages/docker/src | |
parent | a54a2373f1b48cdb64d4920ec57ffeab4f228814 (diff) |
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 <rashmi.pujar@bell.ca>
Change-Id: I9ea0161b45d504be4e65a21c95e48dee4a78de3a
Diffstat (limited to 'packages/docker/src')
-rw-r--r-- | packages/docker/src/main/docker/Dockerfile | 6 |
1 files changed, 6 insertions, 0 deletions
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 \ |