You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2024/04/05 16:15:49 UTC

(pulsar) branch branch-3.2 updated: [improve][misc] Specify valid home dir for the default user in the Ubuntu based docker image (#22446)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 4a5d14ce683 [improve][misc] Specify valid home dir for the default user in the Ubuntu based docker image (#22446)
4a5d14ce683 is described below

commit 4a5d14ce683b9845ca4c1d9345202f9adfac6d50
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Fri Apr 5 09:14:22 2024 -0700

    [improve][misc] Specify valid home dir for the default user in the Ubuntu based docker image (#22446)
    
    (cherry picked from commit e008580f0fd00451fb9b05caf53757ba6539ba61)
---
 docker/pulsar/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index 0bb7c4d539a..72d92926768 100644
--- a/docker/pulsar/Dockerfile
+++ b/docker/pulsar/Dockerfile
@@ -107,5 +107,5 @@ RUN chmod +x /pulsar/bin/install-pulsar-client.sh
 RUN /pulsar/bin/install-pulsar-client.sh
 
 # The UID must be non-zero. Otherwise, it is arbitrary. No logic should rely on its specific value.
-RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0
+RUN useradd ${DEFAULT_USERNAME} -u 10000 -g 0 --no-create-home --home-dir /pulsar/data
 USER 10000