diff options
author | liamfallon <liam.fallon@est.tech> | 2023-02-14 11:36:16 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2023-02-14 11:36:19 +0000 |
commit | 0e906cde3321ebb845901d16e81b56590b1e521d (patch) | |
tree | 8357d9d8b7b57c1c0069d211e7eb529735aa2163 /packages/apex-pdp-docker/src/main | |
parent | cf53eacdaf85a91a7e697465180d6a1f7bacc658 (diff) |
Update Dockerfile for PF base image
The Policy Framework base image run under the "onap" user rather than
under the "root" user. This means that root access has to be enabled in
child Dockerfiles for configuraiton that requires root access.
Root access is turned off again later in the Dockerfile so that the
image will run under another user.
Issue-ID: POLICY-4558
Change-Id: I3cef40fa259f0646c75edcb835258d24e3fb0e9c
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'packages/apex-pdp-docker/src/main')
-rw-r--r-- | packages/apex-pdp-docker/src/main/docker/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/apex-pdp-docker/src/main/docker/Dockerfile b/packages/apex-pdp-docker/src/main/docker/Dockerfile index 487fb0620..c4bd4ad76 100644 --- a/packages/apex-pdp-docker/src/main/docker/Dockerfile +++ b/packages/apex-pdp-docker/src/main/docker/Dockerfile @@ -43,6 +43,7 @@ ENV POLICY_LOGS=$POLICY_LOGS ENV APEX_HOME=$POLICY_HOME ENV APEX_USER=policy +USER root RUN mkdir -p $POLICY_HOME $POLICY_LOGS && \ chown -R policy:policy $POLICY_HOME $POLICY_LOGS |