summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozsef Csongvai <jozsef.csongvai@bell.ca>2021-10-06 11:42:59 -0400
committerJozsef Csongvai <jozsef.csongvai@bell.ca>2021-10-26 13:49:55 +0000
commit46ebf1bff17861d7d9ef5947ed63366f64e50729 (patch)
tree96c8553e3606e48054ada8e0e38f0a52c77e6220
parent4921dbf41af1a51b306f2a52b155fa06ae2b9b42 (diff)
Add home directory for onap user in command-executor dockerfile1.2.1
Without a home directory, pip install would fail for CBAs that require additional modules. Issue-ID: CCSDK-3477 Change-Id: If99790a0c8c015639c489e9a498f8df8da4cbe77 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> (cherry picked from commit 64ab1beff4ebcb8a52ae50613bb2abb147a22799)
-rw-r--r--ms/command-executor/src/main/docker/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/command-executor/src/main/docker/Dockerfile b/ms/command-executor/src/main/docker/Dockerfile
index 987932e24..3a6d99a63 100644
--- a/ms/command-executor/src/main/docker/Dockerfile
+++ b/ms/command-executor/src/main/docker/Dockerfile
@@ -11,7 +11,7 @@ RUN tar -xzf /source.tar.gz -C /tmp \
&& cp -rf /tmp/@project.build.finalName@/opt / \
&& rm -rf /source.tar.gz \
&& rm -rf /tmp/@project.build.finalName@ \
- && groupadd -r -g 1000 onap && useradd -r -u 1000 -g onap onap \
+ && groupadd -r -g 1000 onap && useradd -r -m -d /home/onap -u 1000 -g onap onap \
&& mkdir -p /opt/app/onap/blueprints/deploy /opt/app/onap/logs \
&& touch /opt/app/onap/logs/application.log \
&& chown -R onap:onap /opt \