aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-distribution-docker/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorliboNet <libo.zhu@intel.com>2018-12-18 09:22:00 +0800
committerliboNet <libo.zhu@intel.com>2018-12-19 12:29:10 +0800
commitfc32c230809a051bc1c17e8a2a447210822eebe7 (patch)
tree17bbbd6f9b235bfadca792f3750baecde51f78d0 /packages/policy-distribution-docker/src/main/docker/Dockerfile
parent987cb61f269572fec7c0b0fe500f081ca36c2dd9 (diff)
add Https support for distribution endpoints
. add the https into the RestServerParameters interface . update CommonTestData to support https interface . add two cases for healthcheck and statistic https validation . update the package script to use JVM properties . add keystore and truststore to resources dir . update the keystore path for consistency Change-Id: I04b2a3e1afef84eafbb6a22e6fe2122a5a181883 Issue-ID: POLICY-1221 Signed-off-by: liboNet <libo.zhu@intel.com>
Diffstat (limited to 'packages/policy-distribution-docker/src/main/docker/Dockerfile')
-rw-r--r--packages/policy-distribution-docker/src/main/docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/policy-distribution-docker/src/main/docker/Dockerfile b/packages/policy-distribution-docker/src/main/docker/Dockerfile
index e1349775..3168d72b 100644
--- a/packages/policy-distribution-docker/src/main/docker/Dockerfile
+++ b/packages/policy-distribution-docker/src/main/docker/Dockerfile
@@ -28,8 +28,8 @@ RUN \
RUN groupadd policy
RUN useradd --create-home --shell /bin/bash -g policy policy
-RUN mkdir -p ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS} && \
- chown policy:policy ${POLICY_HOME} ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS}
+RUN mkdir -p ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS} ${POLICY_HOME}/etc/ssl && \
+ chown -R policy:policy ${POLICY_HOME} ${POLICY_DISTRIBUTION_HOME} ${POLICY_LOGS}
RUN mkdir /packages
COPY /maven/* /packages
@@ -39,6 +39,7 @@ RUN rm /packages/policy-distribution.tar.gz
WORKDIR ${POLICY_DISTRIBUTION_HOME}
COPY policy-dist.sh bin/.
RUN chown -R policy:policy * && chmod +x bin/*.sh
+RUN cp ${POLICY_DISTRIBUTION_HOME}/etc/ssl/* ${POLICY_HOME}/etc/ssl && chown policy:policy ${POLICY_HOME}/etc/ssl/*
USER policy
WORKDIR ${POLICY_DISTRIBUTION_HOME}/bin