Skip to content

Commit

Permalink
Merge pull request #2004 from beyonnex-io/bugfix/adjust-gid-uid-docke…
Browse files Browse the repository at this point in the history
…r-image

adjust gid and uid in Docker images for "ditto" user and group
  • Loading branch information
thjaeckle authored Aug 26, 2024
2 parents d00416e + 22b5468 commit 1c12c09
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 1c12c09

Please sign in to comment.