This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm-docker.git
The following commit(s) were added to refs/heads/master by this push:
new e711710 Replace default ubuntu user with storm user
e711710 is described below
commit e7117105eb207e0ffad071d429e7c3de8c0864ce
Author: Richard Zowalla <[email protected]>
AuthorDate: Tue Jul 23 10:01:11 2024 +0200
Replace default ubuntu user with storm user
---
2.6.3-jre17/Dockerfile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/2.6.3-jre17/Dockerfile b/2.6.3-jre17/Dockerfile
index 89683a4..bca6ee0 100644
--- a/2.6.3-jre17/Dockerfile
+++ b/2.6.3-jre17/Dockerfile
@@ -4,7 +4,12 @@ ENV STORM_CONF_DIR=/conf \
STORM_DATA_DIR=/data \
STORM_LOG_DIR=/logs
+# Remove the default user 'ubuntu' and its group
+RUN userdel -r ubuntu && \
+ groupdel ubuntu || true \
+
# Add a user with an explicit UID/GID and create necessary directories
+# Print the result of the getent group 1000 command
RUN set -eux; \
groupadd -r storm --gid=1000; \
useradd -r -g storm --uid=1000 storm; \