Skip to content

Commit d343dd2

Browse files
author
SUSE Update Bot
committed
Test build for #3020
1 parent 85ac183 commit d343dd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git-image/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ COPY --from=target / /target
2929

3030
RUN set -euo pipefail; \
3131
export CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
32-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients
32+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients shadow
33+
# create the user and group with the given ids
34+
RUN set -euo pipefail; \
35+
groupadd -R /target -g 1000 -r git; \
36+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash git
3337
# sanity check that the version from the tag is equal to the version of git-core that we expect
3438
RUN set -euo pipefail; \
3539
[ "$(rpm --root /target -q --qf '%{version}' git-core | \

0 commit comments

Comments
 (0)