Skip to content

Commit

Permalink
adjust gid and uid in Docker images for "ditto" user and group
Browse files Browse the repository at this point in the history
* base image suddenly uses gid and uid 1000
  • Loading branch information
thjaeckle committed Aug 26, 2024
1 parent 70346e9 commit 22b5468
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dockerfile-release
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN set -x \
&& apt-get install -y tini \
&& mkdir -p $DITTO_HOME \
&& mkdir -p $DITTO_LOGS \
&& groupadd --system --gid 1000 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1000 ditto \
&& groupadd --system --gid 1005 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1005 ditto \
&& chown -R ditto:ditto $DITTO_LOGS \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions dockerfile-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN set -x \
&& apt-get install -y tini \
&& mkdir -p $DITTO_HOME \
&& mkdir -p $DITTO_LOGS \
&& groupadd --system --gid 1000 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1000 ditto \
&& groupadd --system --gid 1005 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1005 ditto \
&& chown -R ditto:ditto $DITTO_HOME $DITTO_LOGS \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions dockerfile-snapshot-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN set -x \
&& apt-get install -y tini \
&& mkdir -p $DITTO_HOME \
&& mkdir -p $DITTO_LOGS \
&& groupadd --system --gid 1000 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1000 ditto \
&& groupadd --system --gid 1005 ditto \
&& useradd --no-log-init --system --home-dir $DITTO_HOME --shell /bin/sh --gid ditto --uid 1005 ditto \
&& chown -R ditto:ditto $DITTO_HOME $DITTO_LOGS \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 22b5468

Please sign in to comment.