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 adb8344  Remove default ubuntu user (if it exists)
adb8344 is described below

commit adb8344286f15872ecebb2796ad7ee0791f09883
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri Jul 26 07:47:29 2024 +0200

    Remove default ubuntu user (if it exists)
---
 2.6.3/Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/2.6.3/Dockerfile b/2.6.3/Dockerfile
index a8724fb..f2e8568 100644
--- a/2.6.3/Dockerfile
+++ b/2.6.3/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; \

Reply via email to