Skip to content

Commit

Permalink
Rename ubuntu user to gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganwitt committed Sep 27, 2024
1 parent 150f9f6 commit 965c43d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jdk23/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 965c43d

Please sign in to comment.