summaryrefslogtreecommitdiffstats
path: root/ms/command-executor/src/main
diff options
context:
space:
mode:
authorJozsef Csongvai <jozsef.csongvai@bell.ca>2021-10-06 11:42:59 -0400
committerKAPIL SINGAL <ks220y@att.com>2021-10-20 00:47:16 +0000
commit64ab1beff4ebcb8a52ae50613bb2abb147a22799 (patch)
tree8f756c1dcdf5281969ae029a92ea6ef084c904ad /ms/command-executor/src/main
parent39f3fe457ab9a2e1f745bf82a7866fc404de4b04 (diff)
Add home directory for onap user in command-executor dockerfile
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>
Diffstat (limited to 'ms/command-executor/src/main')
-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 \