summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabhishek bajaj <abhishek.kumar.bajaj@huawei.com>2021-06-29 20:03:27 +0530
committerabhishek bajaj <abhishek.kumar.bajaj@huawei.com>2021-06-30 15:58:43 +0530
commitf14f22fcc9016a41e9bca5770009774cab7db672 (patch)
tree7d2310dff7063b3d47b125899f8529185e34c669
parentc99046fe4d1534d0acb055ae1c2a5ef7f24c96b2 (diff)
Failed to fetch huawei:latest image running jenkins job
Issue-ID: VFC-1864 Signed-off-by: abhishek bajaj <abhishek.kumar.bajaj@huawei.com> Change-Id: Ib10b1784aaf1e835781e5b779f2152e6030caa35
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
index 9906ba10..7f0fb6eb 100644
--- a/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
+++ b/huawei/vnfmadapter/VnfmadapterService/docker/Dockerfile
@@ -1,11 +1,17 @@
#VFC-1837/VFC-1842 need to validate
FROM python:3.9-alpine
-ARG PKG_VERSION
+ARG HTTP_PROXY=${HTTP_PROXY}
+ARG HTTPS_PROXY=${HTTPS_PROXY}
ENV JAVA_HOME /usr/lib/jvm/jre
ENV CATALINA_HOME /service
+ENV http_proxy $HTTP_PROXY
+ENV https_proxy $HTTPS_PROXY
+ENV pkg_verison=${PKG_VERSION}
+
ADD . /service
WORKDIR /service
+
RUN bash docker-env-config.sh
VOLUME /var/lib/mysql