aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-pap-docker/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorshaoqiu <tim.huang@est.tech>2019-06-28 05:02:39 +0000
committershaoqiu <tim.huang@est.tech>2019-06-28 05:02:39 +0000
commitd848416090efd6850ab25011d8518b15525a1bdb (patch)
treed3ff7914adc02fa7bc9ea1577c24d0e06a901be6 /packages/policy-pap-docker/src/main/docker/Dockerfile
parent057a72e7501211b918646d7fd30d31d2c14913be (diff)
Remove POLICY_PAP_HOME in Dockerfile
To use POLICY_HOME not POLICY_XX_HOME Issue-ID: POLICY-1702 Change-Id: I87db84593c2fec3071571b1a0e09552c764a3474 Signed-off-by: shaoqiu <tim.huang@est.tech>
Diffstat (limited to 'packages/policy-pap-docker/src/main/docker/Dockerfile')
-rw-r--r--packages/policy-pap-docker/src/main/docker/Dockerfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/policy-pap-docker/src/main/docker/Dockerfile b/packages/policy-pap-docker/src/main/docker/Dockerfile
index f84a2b8d..4b0892c2 100644
--- a/packages/policy-pap-docker/src/main/docker/Dockerfile
+++ b/packages/policy-pap-docker/src/main/docker/Dockerfile
@@ -4,22 +4,22 @@ LABEL maintainer="Policy Team"
ARG POLICY_LOGS=/var/log/onap/policy/pap
-ENV POLICY_LOGS ${POLICY_LOGS}
-ENV POLICY_PAP_HOME=${POLICY_HOME}/pap
+ENV POLICY_LOGS=$POLICY_LOGS
+ENV POLICY_HOME=$POLICY_HOME/pap
-RUN mkdir -p ${POLICY_PAP_HOME} ${POLICY_LOGS} ${POLICY_PAP_HOME}/bin && \
- chown -R policy:policy ${POLICY_PAP_HOME} ${POLICY_LOGS}
+RUN mkdir -p $POLICY_HOME $POLICY_LOGS $POLICY_HOME/bin && \
+ chown -R policy:policy $POLICY_HOME $POLICY_LOGS
RUN mkdir /packages
COPY /maven/* /packages
-RUN tar xvfz /packages/policy-pap.tar.gz --directory ${POLICY_PAP_HOME} \
+RUN tar xvfz /packages/policy-pap.tar.gz --directory $POLICY_HOME \
&& rm /packages/policy-pap.tar.gz
-WORKDIR ${POLICY_PAP_HOME}
+WORKDIR $POLICY_HOME
COPY policy-pap.sh bin/.
-RUN chown -R policy:policy * && chmod 755 bin/*.sh \
- && cp ${POLICY_PAP_HOME}/etc/ssl/* ${POLICY_HOME}/etc/ssl && chown policy:policy ${POLICY_HOME}/etc/ssl/*
+
+RUN chown -R policy:policy * && chmod 755 bin/*.sh
USER policy
-WORKDIR ${POLICY_PAP_HOME}/bin
+WORKDIR $POLICY_HOME/bin
ENTRYPOINT [ "bash", "./policy-pap.sh" ]