diff options
author | liamfallon <liam.fallon@est.tech> | 2023-02-16 12:03:09 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2023-02-16 12:03:13 +0000 |
commit | afaa864981e4ca301b434dbffc46afe22948c1ee (patch) | |
tree | 36b04143f46f0b650fa648f2dea088e4d9de5cb1 /packages/docker/src/main | |
parent | 7a8edbaaec4b1e988091b161a54f2ed320035470 (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: Ie3178fcda9bedd47a1fc13d819bf4cfdc74c7a3f
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'packages/docker/src/main')
-rw-r--r-- | packages/docker/src/main/docker/Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile index d5708746..29e97c94 100644 --- a/packages/docker/src/main/docker/Dockerfile +++ b/packages/docker/src/main/docker/Dockerfile @@ -50,9 +50,11 @@ ENV MVN_SNAPSHOT_REPO_URL $MVN_SNAPSHOT_REPO_URL ENV MVN_RELEASE_REPO_URL $MVN_RELEASE_REPO_URL ENV http_proxy $http_proxy +USER root RUN apk update && \ apk add --no-cache mariadb-client \ file \ + maven \ net-tools netcat-openbsd sudo less vim openssl \ && python3 -m pip install --no-cache-dir --upgrade setuptools http-prompt \ && python3 -m pip install --no-cache-dir httpie |