From 64ab1beff4ebcb8a52ae50613bb2abb147a22799 Mon Sep 17 00:00:00 2001 From: Jozsef Csongvai Date: Wed, 6 Oct 2021 11:42:59 -0400 Subject: 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 --- ms/command-executor/src/main/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- cgit 1.2.3-korg