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 333a655 Deleted ubuntu default user and its group
333a655 is described below
commit 333a65537ea008d806182c6b06724dc4b8b73453
Author: Mayank Shakya <[email protected]>
AuthorDate: Fri Jul 26 15:10:52 2024 +0530
Deleted ubuntu default user and its group
---
2.6.2/Dockerfile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/2.6.2/Dockerfile b/2.6.2/Dockerfile
index e482bdb..6dbb15f 100644
--- a/2.6.2/Dockerfile
+++ b/2.6.2/Dockerfile
@@ -4,6 +4,10 @@ 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
RUN set -eux; \
groupadd -r storm --gid=1000; \