Skip to content

Commit e2e149a

Browse files
author
SUSE Update Bot
committed
Test build for #3626
1 parent 06c1868 commit e2e149a

12 files changed

Lines changed: 56 additions & 32 deletions

File tree

kubectl-oldstable-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@ LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
6868
LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png"
6969
ENTRYPOINT ["kubectl"]
7070

71-
RUN set -euo pipefail; echo "user:x:999:100:User for CLI:/home/user:/usr/sbin/nologin" >> /etc/passwd && install -d -o 999 -g 100 -m 0755 /home/user
71+
RUN set -euo pipefail; echo "user:x:999:100:User for CLI:/home/user:/usr/sbin/nologin" >> /etc/passwd && install -d -o 999 -g 100 -m 0755 /home/user && mkdir -p /home/user/.kube && chown -R 999:100 /home/user && chmod 755 /home/user /home/user/.kube
72+
7273
WORKDIR /home/user

kubectl-oldstable-image/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ podman run --rm --name kubectl \
3030
-v /localpath/to/customize:/home/user:Z
3131
registry.suse.com/suse/kubectl:1.33 kustomize --enable-helm
3232
```
33+
## Running as a non-root user
3334

35+
By default, this container runs as the `root` user. However, it is prepared to run as a non-privileged user (UID `999`) for enhanced security.
36+
37+
To run the container in rootless mode, you must explicitly set the user and the home environment variables:
38+
39+
```ShellSession
40+
podman run --rm --name kubectl \
41+
--user 999:100 \
42+
-e HOME=/home/user \
43+
-v /localpath/to/kubeconfig:/home/user/.kube/config:Z \
44+
registry.suse.com/suse/kubectl:1.33 get nodes
3445

3546
## Licensing
3647

kubectl-stable-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
6969
LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png"
7070
ENTRYPOINT ["kubectl"]
7171

72-
RUN set -euo pipefail; echo "user:x:999:100:User for CLI:/home/user:/usr/sbin/nologin" >> /etc/passwd && install -d -o 999 -g 100 -m 0755 /home/user
72+
RUN set -euo pipefail; echo "user:x:999:100:User for CLI:/home/user:/usr/sbin/nologin" >> /etc/passwd && install -d -o 999 -g 100 -m 0755 /home/user && mkdir -p /home/user/.kube && chown -R 999:100 /home/user && chmod 755 /home/user /home/user/.kube
73+
7374
WORKDIR /home/user

kubectl-stable-image/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ podman run --rm --name kubectl \
3030
-v /localpath/to/customize:/home/user:Z
3131
registry.suse.com/suse/kubectl:1.35 kustomize --enable-helm
3232
```
33+
## Running as a non-root user
3334

35+
By default, this container runs as the `root` user. However, it is prepared to run as a non-privileged user (UID `999`) for enhanced security.
36+
37+
To run the container in rootless mode, you must explicitly set the user and the home environment variables:
38+
39+
```ShellSession
40+
podman run --rm --name kubectl \
41+
--user 999:100 \
42+
-e HOME=/home/user \
43+
-v /localpath/to/kubeconfig:/home/user/.kube/config:Z \
44+
registry.suse.com/suse/kubectl:1.35 get nodes
3445

3546
## Licensing
3647

rust-oldstable-image/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
#!BuildTag: bci/rust:%%RUST_VERSION%%-2.%RELEASE%
1919
#!BuildTag: bci/rust:%%RUST_VERSION%%
2020
#!BuildTag: bci/rust:oldstable
21-
#!BuildTag: bci/rust:1.92
22-
#!BuildTag: bci/rust:1.92-sles15
21+
#!BuildTag: bci/rust:1.93
22+
#!BuildTag: bci/rust:1.93-sles15
2323
#!BuildName: bci-rust-oldstable
24-
#!BuildVersion: 15.7.1.92.2
24+
#!BuildVersion: 15.7.1.93.2
2525
FROM registry.suse.com/bci/bci-base:15.7
2626

2727
RUN set -euo pipefail; \
28-
zypper -n install --no-recommends rust1.92 cargo1.92 lifecycle-data-sle-module-development-tools
28+
zypper -n install --no-recommends rust1.93 cargo1.93 lifecycle-data-sle-module-development-tools
2929

3030
# cleanup logs and temporary files
3131
RUN set -euo pipefail; zypper -n clean -a; \
@@ -43,8 +43,8 @@ RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shad
4343
# Define labels according to https://en.opensuse.org/Building_derived_containers
4444
# labelprefix=com.suse.bci.rust
4545
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
46-
LABEL org.opencontainers.image.title="SLE BCI Rust 1.92"
47-
LABEL org.opencontainers.image.description="Rust 1.92 container based on the SUSE Linux Enterprise Base Container Image."
46+
LABEL org.opencontainers.image.title="SLE BCI Rust 1.93"
47+
LABEL org.opencontainers.image.description="Rust 1.93 container based on the SUSE Linux Enterprise Base Container Image."
4848
LABEL org.opencontainers.image.version="%%RUST_VERSION%%"
4949
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
5050
LABEL org.opencontainers.image.created="%BUILDTIME%"
@@ -54,7 +54,7 @@ LABEL org.opencontainers.image.ref.name="%%RUST_VERSION%%-2.%RELEASE%"
5454
LABEL org.opensuse.reference="registry.suse.com/bci/rust:%%RUST_VERSION%%-2.%RELEASE%"
5555
LABEL org.openbuildservice.disturl="%DISTURL%"
5656
LABEL com.suse.supportlevel="l3"
57-
LABEL com.suse.supportlevel.until="2026-03-26"
57+
LABEL com.suse.supportlevel.until="2026-05-07"
5858
LABEL com.suse.eula="sle-bci"
5959
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
6060
LABEL com.suse.release-stage="released"

rust-oldstable-image/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rust 1.92 Container Image
1+
# Rust 1.93 Container Image
22

33
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)[![SLSA](https://img.shields.io/badge/SLSA_(v1.0)-Build_L3-Green)](https://documentation.suse.com/sbp/security/html/SBP-SLSA4/)
44
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify)
@@ -12,8 +12,8 @@
1212
To compile and deploy an application, copy the sources, fetch dependencies, and build the binary:
1313

1414
```Dockerfile
15-
# Build the application using the Rust 1.92 container image
16-
FROM registry.suse.com/bci/rust:1.92 as build
15+
# Build the application using the Rust 1.93 container image
16+
FROM registry.suse.com/bci/rust:1.93 as build
1717

1818
WORKDIR /app
1919

@@ -41,7 +41,7 @@ There are situations, where you don't want to run an application inside a contai
4141
To compile the application, without running it inside a container instance, use the following command:
4242

4343
```ShellSession
44-
$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/rust:1.92 cargo build --release
44+
$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/rust:1.93 cargo build --release
4545
```
4646

4747
**Note:** The Rust image is intended to be used as a build environment. For runtime, use smaller images such as `bci-base`, `bci-micro`, or `bci-minimal`.

rust-oldstable-image/_service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<service mode="buildtime" name="replace_using_package_version">
55
<param name="file">Dockerfile</param>
66
<param name="regex">%%RUST_VERSION%%</param>
7-
<param name="package">rust1.92</param>
7+
<param name="package">rust1.93</param>
88
</service>
99
<service mode="buildtime" name="replace_using_package_version">
1010
<param name="file">Dockerfile</param>
1111
<param name="regex">%%CARGO_VERSION%%</param>
12-
<param name="package">cargo1.92</param>
12+
<param name="package">cargo1.93</param>
1313
</service>
1414
</services>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
requires:cargo1.92
2-
requires:rust1.92
1+
requires:cargo1.93
2+
requires:rust1.93

rust-stable-image/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
#!BuildTag: bci/rust:%%RUST_VERSION%%-1.%RELEASE%
1919
#!BuildTag: bci/rust:%%RUST_VERSION%%
2020
#!BuildTag: bci/rust:stable
21-
#!BuildTag: bci/rust:1.93
22-
#!BuildTag: bci/rust:1.93-sles15
21+
#!BuildTag: bci/rust:1.94
22+
#!BuildTag: bci/rust:1.94-sles15
2323
#!BuildTag: bci/rust:latest
2424
#!BuildName: bci-rust-stable
25-
#!BuildVersion: 15.7.1.93.1
25+
#!BuildVersion: 15.7.1.94.1
2626
FROM registry.suse.com/bci/bci-base:15.7
2727

2828
RUN set -euo pipefail; \
29-
zypper -n install --no-recommends rust1.93 cargo1.93 lifecycle-data-sle-module-development-tools
29+
zypper -n install --no-recommends rust1.94 cargo1.94 lifecycle-data-sle-module-development-tools
3030

3131
# cleanup logs and temporary files
3232
RUN set -euo pipefail; zypper -n clean -a; \
@@ -44,8 +44,8 @@ RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shad
4444
# Define labels according to https://en.opensuse.org/Building_derived_containers
4545
# labelprefix=com.suse.bci.rust
4646
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
47-
LABEL org.opencontainers.image.title="SLE BCI Rust 1.93"
48-
LABEL org.opencontainers.image.description="Rust 1.93 container based on the SUSE Linux Enterprise Base Container Image."
47+
LABEL org.opencontainers.image.title="SLE BCI Rust 1.94"
48+
LABEL org.opencontainers.image.description="Rust 1.94 container based on the SUSE Linux Enterprise Base Container Image."
4949
LABEL org.opencontainers.image.version="%%RUST_VERSION%%"
5050
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
5151
LABEL org.opencontainers.image.created="%BUILDTIME%"
@@ -55,7 +55,7 @@ LABEL org.opencontainers.image.ref.name="%%RUST_VERSION%%-1.%RELEASE%"
5555
LABEL org.opensuse.reference="registry.suse.com/bci/rust:%%RUST_VERSION%%-1.%RELEASE%"
5656
LABEL org.openbuildservice.disturl="%DISTURL%"
5757
LABEL com.suse.supportlevel="l3"
58-
LABEL com.suse.supportlevel.until="2026-05-07"
58+
LABEL com.suse.supportlevel.until="2026-06-18"
5959
LABEL com.suse.eula="sle-bci"
6060
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
6161
LABEL com.suse.release-stage="released"

rust-stable-image/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rust 1.93 Container Image
1+
# Rust 1.94 Container Image
22

33
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)[![SLSA](https://img.shields.io/badge/SLSA_(v1.0)-Build_L3-Green)](https://documentation.suse.com/sbp/security/html/SBP-SLSA4/)
44
[![Provenance: Available](https://img.shields.io/badge/Provenance-Available-Green)](https://documentation.suse.com/container/all/html/Container-guide/index.html#container-verify)
@@ -12,8 +12,8 @@
1212
To compile and deploy an application, copy the sources, fetch dependencies, and build the binary:
1313

1414
```Dockerfile
15-
# Build the application using the Rust 1.93 container image
16-
FROM registry.suse.com/bci/rust:1.93 as build
15+
# Build the application using the Rust 1.94 container image
16+
FROM registry.suse.com/bci/rust:1.94 as build
1717

1818
WORKDIR /app
1919

@@ -41,7 +41,7 @@ There are situations, where you don't want to run an application inside a contai
4141
To compile the application, without running it inside a container instance, use the following command:
4242

4343
```ShellSession
44-
$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/rust:1.93 cargo build --release
44+
$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/rust:1.94 cargo build --release
4545
```
4646

4747
**Note:** The Rust image is intended to be used as a build environment. For runtime, use smaller images such as `bci-base`, `bci-micro`, or `bci-minimal`.

0 commit comments

Comments
 (0)