diff options
author | a.sreekumar <ajith.sreekumar@est.tech> | 2020-01-06 15:48:31 +0000 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@est.tech> | 2020-01-06 17:36:55 +0000 |
commit | 6fae58f0d1c3c2374d39d4f91fcbc0cf95780ee7 (patch) | |
tree | b81c511b7e1902742d5c08bb2bb715064cd2b3b2 /packages | |
parent | 004f3557013cb1919754a7318b0005e00b6867de (diff) |
Changing ownership of configuration files in APEX
Default user when logging into APEX container is apexuser. Updating the
ownership of configuration files such as logback.xml and key files so
that these can be updated at runtime.
Change-Id: Icf21e0b408d3b4ef829e1b1c5505f142a7d08adc
Issue-ID: POLICY-2308
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/apex-pdp-docker/src/main/docker/Dockerfile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/apex-pdp-docker/src/main/docker/Dockerfile b/packages/apex-pdp-docker/src/main/docker/Dockerfile index 5ae7a7c7a..7f208dac3 100644 --- a/packages/apex-pdp-docker/src/main/docker/Dockerfile +++ b/packages/apex-pdp-docker/src/main/docker/Dockerfile @@ -33,9 +33,10 @@ RUN find /opt/app -type d -perm 755 \ && find /opt/app -type f -perm 644 \ && chmod 755 $POLICY_HOME/bin/* -# Copy examples to Apex user area +# Copy examples to Apex user area and make apexuser as the owner for files in POLICY_HOME RUN cp -pr $POLICY_HOME/examples /home/apexuser \ - && chown -R apexuser:apexuser /home/apexuser/* + && chown -R apexuser:apexuser /home/apexuser/* $POLICY_HOME \ + && chmod 755 $POLICY_HOME/etc/* USER apexuser ENV PATH $POLICY_HOME/bin:$PATH |