From 965c43d6403d0dea4d545e6fc2420137ab53299f Mon Sep 17 00:00:00 2001 From: Keegan Witt Date: Thu, 26 Sep 2024 23:59:08 -0400 Subject: [PATCH] Rename ubuntu user to gradle --- jdk23/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jdk23/Dockerfile b/jdk23/Dockerfile index 2919d865..6d87de69 100644 --- a/jdk23/Dockerfile +++ b/jdk23/Dockerfile @@ -5,9 +5,11 @@ CMD ["gradle"] ENV GRADLE_HOME /opt/gradle RUN set -o errexit -o nounset \ - && echo "Adding gradle user and group" \ - && groupadd --system --gid 1000 gradle \ - && useradd --system --gid gradle --uid 1000 --shell /bin/bash --create-home gradle \ + && echo "Renaming ubuntu user and group to gradle" \ + && groupmod --new-name gradle ubuntu \ + && mkdir /home/gradle \ + && usermod --login gradle --home /home/gradle --groups gradle ubuntu \ + && chown gradle /home/gradle \ && mkdir /home/gradle/.gradle \ && chown --recursive gradle:gradle /home/gradle \ && chmod --recursive o+rwx /home/gradle \