Skip to content

Commit c7de71a

Browse files
author
SUSE Update Bot
committed
Test build for #3020
1 parent 7b29623 commit c7de71a

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
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 | \

helm-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 ca-certificates-mozilla helm
32+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends ca-certificates-mozilla helm shadow
33+
# create the user and group with the given ids
34+
RUN set -euo pipefail; \
35+
groupadd -R /target -g 1000 -r helm; \
36+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash helm
3337
# sanity check that the version from the tag is equal to the version of helm that we expect
3438
RUN set -euo pipefail; \
3539
[ "$(rpm --root /target -q --qf '%{version}' helm | \

kubectl-oldstable-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 kubernetes1.31-client
32+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.31-client shadow
33+
# create the user and group with the given ids
34+
RUN set -euo pipefail; \
35+
groupadd -R /target -g 1000 -r kubectl; \
36+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
3337
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3438
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3539
rm -rf {/target,}/run/*; \

kubectl-stable-image/Dockerfile

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

3131
RUN set -euo pipefail; \
3232
export CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
33-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.33-client
33+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.33-client shadow
34+
# create the user and group with the given ids
35+
RUN set -euo pipefail; \
36+
groupadd -R /target -g 1000 -r kubectl; \
37+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
3438
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3539
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3640
rm -rf {/target,}/run/*; \

samba-client-image/Dockerfile

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

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

samba-toolbox-image/Dockerfile

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

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

0 commit comments

Comments
 (0)