Skip to content

Commit d45fe67

Browse files
author
SUSE Update Bot
committed
Test build for #3020
1 parent 8b2db1a commit d45fe67

8 files changed

Lines changed: 40 additions & 8 deletions

File tree

git-image/Dockerfile

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

2828
RUN set -euo pipefail; \
2929
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
30-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients
30+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients shadow
31+
# create the user and group with the given ids
32+
RUN set -euo pipefail; \
33+
groupadd -R /target -g 1000 -r git; \
34+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash git
3135
# sanity check that the version from the tag is equal to the version of git-core that we expect
3236
RUN set -euo pipefail; \
3337
[ "$(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
@@ -27,7 +27,11 @@ COPY --from=target / /target
2727

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

kubectl-1.31-image/Dockerfile

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

2626
RUN set -euo pipefail; \
2727
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
28-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.31-client
28+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.31-client shadow
29+
# create the user and group with the given ids
30+
RUN set -euo pipefail; \
31+
groupadd -R /target -g 1000 -r kubectl; \
32+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
2933
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3034
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3135
rm -rf {/target,}/run/*; \

kubectl-1.32-image/Dockerfile

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

2626
RUN set -euo pipefail; \
2727
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
28-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.32-client
28+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.32-client shadow
29+
# create the user and group with the given ids
30+
RUN set -euo pipefail; \
31+
groupadd -R /target -g 1000 -r kubectl; \
32+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
2933
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3034
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3135
rm -rf {/target,}/run/*; \

kubectl-1.33-image/Dockerfile

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

2626
RUN set -euo pipefail; \
2727
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
28-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.33-client
28+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.33-client shadow
29+
# create the user and group with the given ids
30+
RUN set -euo pipefail; \
31+
groupadd -R /target -g 1000 -r kubectl; \
32+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
2933
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3034
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3135
rm -rf {/target,}/run/*; \

kubectl-1.34-image/Dockerfile

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

2727
RUN set -euo pipefail; \
2828
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
29-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.34-client
29+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kubernetes1.34-client shadow
30+
# create the user and group with the given ids
31+
RUN set -euo pipefail; \
32+
groupadd -R /target -g 1000 -r kubectl; \
33+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash kubectl
3034
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
3135
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
3236
rm -rf {/target,}/run/*; \

samba-client-image/Dockerfile

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

2727
RUN set -euo pipefail; \
2828
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
29-
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends samba-client
29+
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends samba-client shadow
30+
# create the user and group with the given ids
31+
RUN set -euo pipefail; \
32+
groupadd -R /target -g 1000 -r smbc; \
33+
useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash smbc
3034
# sanity check that the version from the tag is equal to the version of samba-client that we expect
3135
RUN set -euo pipefail; \
3236
[ "$(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
@@ -26,7 +26,11 @@ COPY --from=target / /target
2626

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

0 commit comments

Comments
 (0)