aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2021-07-23 15:53:46 +0100
committerFrancescoFioraEst <francesco.fiora@est.tech>2021-07-27 16:05:33 +0100
commit252a4bba14ebfa2bc58261a87d7c593414a5f944 (patch)
tree0b4a5ef00405c06cb527d351e820af01f9434f86 /packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile
parent395f61064ab29a9506a18bae505ebf1da3315e94 (diff)
Replace JSON properties files to Yaml from docker images
POLICY-3469: Replace JSON properties files to Yaml from docker images Change-Id: I23fbd9d84640286725440453d464c397e3144662 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile')
-rw-r--r--packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile b/packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile
index bd5000686..3d57418e5 100644
--- a/packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile
+++ b/packages/policy-clamp-docker/src/main/docker/ClRuntimeDockerfile
@@ -33,14 +33,18 @@ ENV POLICY_HOME=$POLICY_HOME/clamp
RUN mkdir -p $POLICY_LOGS $POLICY_HOME $POLICY_HOME/bin && \
chown -R policy:policy $POLICY_HOME $POLICY_LOGS && \
mkdir /packages
-COPY /maven/* /packages
+COPY /maven/lib/policy-controlloop-runtime.tar.gz /packages
+
RUN tar xvfz /packages/policy-controlloop-runtime.tar.gz --directory $POLICY_HOME && \
rm /packages/policy-controlloop-runtime.tar.gz
WORKDIR $POLICY_HOME
COPY controlloop-runtime.sh bin/.
+COPY /maven/app.jar /app
-RUN chown -R policy:policy * && chmod 755 bin/*.sh
+RUN chown -R policy:policy * && \
+ chmod 755 bin/*.sh && \
+ chown -R policy:policy /app
USER policy
WORKDIR $POLICY_HOME/bin