Skip to content

Commit 0c1ce2e

Browse files
author
SUSE Update Bot
committed
Test build for #3166
1 parent 975a1c4 commit 0c1ce2e

71 files changed

Lines changed: 1603 additions & 1048 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389-ds-container/Dockerfile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,25 @@ FROM registry.suse.com/bci/bci-base:15.7
2626

2727
RUN set -euo pipefail; \
2828
zypper -n install --no-recommends 389-ds timezone openssl nss_synth
29-
30-
# cleanup logs and temporary files
29+
# image cleanup
3130
RUN set -euo pipefail; zypper -n clean -a; \
32-
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
33-
rm -rf {/target,}/run/*; \
34-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
35-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
36-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
37-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
38-
39-
# set the day of last password change to empty
40-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
31+
rm -vrf /var/log/alternatives.log; \
32+
rm -vrf /var/log/lastlog; \
33+
rm -vrf /var/log/tallylog; \
34+
rm -vrf /var/log/zypper.log; \
35+
rm -vrf /var/log/zypp/history; \
36+
rm -vrf /var/log/YaST2; \
37+
rm -vrf /var/lib/zypp/AnonymousUniqueId; \
38+
rm -vrf /var/cache/zypp/*; \
39+
rm -vrf /run/*; \
40+
rm -vrf /etc/shadow-; \
41+
rm -vrf /etc/group-; \
42+
rm -vrf /etc/passwd-; \
43+
rm -vrf /etc/.pwd.lock; \
44+
rm -vrf /usr/lib/sysimage/rpm/.rpm.lock; \
45+
rm -vrf /var/cache/ldconfig/aux-cache; \
46+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
47+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
4148

4249
# Define labels according to https://en.opensuse.org/Building_derived_containers
4350
# labelprefix=com.suse.application.389-ds

alertmanager-image/Dockerfile

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,28 @@ COPY --from=target / /target
2929
RUN set -euo pipefail; \
3030
export CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
3131
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends golang-github-prometheus-alertmanager curl
32-
33-
# cleanup logs and temporary files
32+
# image cleanup
3433
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
35-
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
36-
rm -rf {/target,}/run/*; \
37-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
38-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
39-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
40-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
34+
rm -vrf /target/var/log/alternatives.log; \
35+
rm -vrf /target/var/log/lastlog; \
36+
rm -vrf /target/var/log/tallylog; \
37+
rm -vrf /target/var/log/zypper.log; \
38+
rm -vrf /target/var/log/zypp/history; \
39+
rm -vrf /target/var/log/YaST2; \
40+
rm -vrf /target/var/lib/zypp/AnonymousUniqueId; \
41+
rm -vrf /target/var/cache/zypp/*; \
42+
rm -vrf /target/run/*; \
43+
rm -vrf /target/etc/shadow-; \
44+
rm -vrf /target/etc/group-; \
45+
rm -vrf /target/etc/passwd-; \
46+
rm -vrf /target/etc/.pwd.lock; \
47+
rm -vrf /target/usr/lib/sysimage/rpm/.rpm.lock; \
48+
rm -vrf /target/var/cache/ldconfig/aux-cache; \
49+
rm -vrf /target/var/lib/zypp/AutoInstalled; \
50+
rm -vrf /target/usr/lib/sysimage/rpm/Index.db; \
51+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
52+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /target/etc/shadow
4153

42-
# set the day of last password change to empty
43-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /target/etc/shadow
4454
FROM registry.suse.com/bci/bci-micro:15.7
4555
COPY --from=builder /target /
4656
# Define labels according to https://en.opensuse.org/Building_derived_containers

aspnet-runtime-10.0/Dockerfile

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,6 @@ FROM registry.suse.com/bci/bci-base:15.7
2525

2626

2727

28-
# set the day of last password change to empty
29-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
30-
31-
# Define labels according to https://en.opensuse.org/Building_derived_containers
32-
# labelprefix=com.suse.bci.dotnet.aspnet
33-
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
34-
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 10.0"
35-
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 10.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
36-
LABEL org.opencontainers.image.version="10.0.0"
37-
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
38-
LABEL org.opencontainers.image.created="%BUILDTIME%"
39-
LABEL org.opencontainers.image.vendor="SUSE LLC"
40-
LABEL org.opencontainers.image.source="%SOURCEURL%"
41-
LABEL org.opencontainers.image.ref.name="10.0.0-%RELEASE%"
42-
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:10.0.0-%RELEASE%"
43-
LABEL org.openbuildservice.disturl="%DISTURL%"
44-
LABEL com.suse.supportlevel="techpreview"
45-
LABEL com.suse.supportlevel.until="2028-11-12"
46-
LABEL com.suse.eula="sle-bci"
47-
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
48-
LABEL com.suse.release-stage="released"
49-
# endlabelprefix
50-
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
51-
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
52-
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
53-
5428

5529
RUN mkdir -p /tmp/
5630

@@ -78,17 +52,52 @@ RUN zypper --non-interactive install --no-recommends libicu libopenssl1_1 /tmp/*
7852
COPY prod.repo /etc/zypp/repos.d/microsoft-dotnet-prod.repo
7953
COPY dotnet-host.check /etc/zypp/systemCheck.d/dotnet-host.check
8054

81-
RUN rm -rf /tmp/* && zypper clean -a && rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
82-
rm -rf {/target,}/run/*; \
83-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
84-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
85-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
86-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
87-
88-
8955

9056
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
9157
ENV DOTNET_VERSION=10.0.0
9258
RUN useradd --uid=$APP_UID -U -d /app -G '' -ms /bin/bash app
9359
WORKDIR /app
9460
EXPOSE 8080
61+
62+
# image cleanup
63+
RUN set -euo pipefail; zypper -n clean -a; \
64+
rm -vrf /var/log/alternatives.log; \
65+
rm -vrf /var/log/lastlog; \
66+
rm -vrf /var/log/tallylog; \
67+
rm -vrf /var/log/zypper.log; \
68+
rm -vrf /var/log/zypp/history; \
69+
rm -vrf /var/log/YaST2; \
70+
rm -vrf /var/lib/zypp/AnonymousUniqueId; \
71+
rm -vrf /var/cache/zypp/*; \
72+
rm -vrf /run/*; \
73+
rm -vrf /etc/shadow-; \
74+
rm -vrf /etc/group-; \
75+
rm -vrf /etc/passwd-; \
76+
rm -vrf /etc/.pwd.lock; \
77+
rm -vrf /usr/lib/sysimage/rpm/.rpm.lock; \
78+
rm -vrf /var/cache/ldconfig/aux-cache; \
79+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
80+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
81+
82+
# Define labels according to https://en.opensuse.org/Building_derived_containers
83+
# labelprefix=com.suse.bci.dotnet.aspnet
84+
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
85+
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 10.0"
86+
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 10.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
87+
LABEL org.opencontainers.image.version="10.0.0"
88+
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
89+
LABEL org.opencontainers.image.created="%BUILDTIME%"
90+
LABEL org.opencontainers.image.vendor="SUSE LLC"
91+
LABEL org.opencontainers.image.source="%SOURCEURL%"
92+
LABEL org.opencontainers.image.ref.name="10.0.0-%RELEASE%"
93+
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:10.0.0-%RELEASE%"
94+
LABEL org.openbuildservice.disturl="%DISTURL%"
95+
LABEL com.suse.supportlevel="techpreview"
96+
LABEL com.suse.supportlevel.until="2028-11-12"
97+
LABEL com.suse.eula="sle-bci"
98+
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
99+
LABEL com.suse.release-stage="released"
100+
# endlabelprefix
101+
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
102+
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
103+
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"

aspnet-runtime-8.0/Dockerfile

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,6 @@ FROM registry.suse.com/bci/bci-base:15.7
2525

2626

2727

28-
# set the day of last password change to empty
29-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
30-
31-
# Define labels according to https://en.opensuse.org/Building_derived_containers
32-
# labelprefix=com.suse.bci.dotnet.aspnet
33-
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
34-
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 8.0"
35-
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 8.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
36-
LABEL org.opencontainers.image.version="8.0.22"
37-
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
38-
LABEL org.opencontainers.image.created="%BUILDTIME%"
39-
LABEL org.opencontainers.image.vendor="SUSE LLC"
40-
LABEL org.opencontainers.image.source="%SOURCEURL%"
41-
LABEL org.opencontainers.image.ref.name="8.0.22-%RELEASE%"
42-
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:8.0.22-%RELEASE%"
43-
LABEL org.openbuildservice.disturl="%DISTURL%"
44-
LABEL com.suse.supportlevel="techpreview"
45-
LABEL com.suse.supportlevel.until="2026-11-10"
46-
LABEL com.suse.eula="sle-bci"
47-
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
48-
LABEL com.suse.release-stage="released"
49-
# endlabelprefix
50-
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
51-
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
52-
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
53-
5428

5529
RUN mkdir -p /tmp/
5630

@@ -78,17 +52,52 @@ RUN zypper --non-interactive install --no-recommends libicu libopenssl1_1 /tmp/*
7852
COPY prod.repo /etc/zypp/repos.d/microsoft-dotnet-prod.repo
7953
COPY dotnet-host.check /etc/zypp/systemCheck.d/dotnet-host.check
8054

81-
RUN rm -rf /tmp/* && zypper clean -a && rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
82-
rm -rf {/target,}/run/*; \
83-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
84-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
85-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
86-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
87-
88-
8955

9056
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
9157
ENV DOTNET_VERSION=8.0.22
9258
RUN useradd --uid=$APP_UID -U -d /app -G '' -ms /bin/bash app
9359
WORKDIR /app
9460
EXPOSE 8080
61+
62+
# image cleanup
63+
RUN set -euo pipefail; zypper -n clean -a; \
64+
rm -vrf /var/log/alternatives.log; \
65+
rm -vrf /var/log/lastlog; \
66+
rm -vrf /var/log/tallylog; \
67+
rm -vrf /var/log/zypper.log; \
68+
rm -vrf /var/log/zypp/history; \
69+
rm -vrf /var/log/YaST2; \
70+
rm -vrf /var/lib/zypp/AnonymousUniqueId; \
71+
rm -vrf /var/cache/zypp/*; \
72+
rm -vrf /run/*; \
73+
rm -vrf /etc/shadow-; \
74+
rm -vrf /etc/group-; \
75+
rm -vrf /etc/passwd-; \
76+
rm -vrf /etc/.pwd.lock; \
77+
rm -vrf /usr/lib/sysimage/rpm/.rpm.lock; \
78+
rm -vrf /var/cache/ldconfig/aux-cache; \
79+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
80+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
81+
82+
# Define labels according to https://en.opensuse.org/Building_derived_containers
83+
# labelprefix=com.suse.bci.dotnet.aspnet
84+
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
85+
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 8.0"
86+
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 8.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
87+
LABEL org.opencontainers.image.version="8.0.22"
88+
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
89+
LABEL org.opencontainers.image.created="%BUILDTIME%"
90+
LABEL org.opencontainers.image.vendor="SUSE LLC"
91+
LABEL org.opencontainers.image.source="%SOURCEURL%"
92+
LABEL org.opencontainers.image.ref.name="8.0.22-%RELEASE%"
93+
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:8.0.22-%RELEASE%"
94+
LABEL org.openbuildservice.disturl="%DISTURL%"
95+
LABEL com.suse.supportlevel="techpreview"
96+
LABEL com.suse.supportlevel.until="2026-11-10"
97+
LABEL com.suse.eula="sle-bci"
98+
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
99+
LABEL com.suse.release-stage="released"
100+
# endlabelprefix
101+
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
102+
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
103+
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"

aspnet-runtime-9.0/Dockerfile

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,6 @@ FROM registry.suse.com/bci/bci-base:15.7
2525

2626

2727

28-
# set the day of last password change to empty
29-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
30-
31-
# Define labels according to https://en.opensuse.org/Building_derived_containers
32-
# labelprefix=com.suse.bci.dotnet.aspnet
33-
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
34-
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 9.0"
35-
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 9.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
36-
LABEL org.opencontainers.image.version="9.0.11"
37-
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
38-
LABEL org.opencontainers.image.created="%BUILDTIME%"
39-
LABEL org.opencontainers.image.vendor="SUSE LLC"
40-
LABEL org.opencontainers.image.source="%SOURCEURL%"
41-
LABEL org.opencontainers.image.ref.name="9.0.11-%RELEASE%"
42-
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:9.0.11-%RELEASE%"
43-
LABEL org.openbuildservice.disturl="%DISTURL%"
44-
LABEL com.suse.supportlevel="techpreview"
45-
LABEL com.suse.supportlevel.until="2026-11-10"
46-
LABEL com.suse.eula="sle-bci"
47-
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
48-
LABEL com.suse.release-stage="released"
49-
# endlabelprefix
50-
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
51-
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
52-
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
53-
5428

5529
RUN mkdir -p /tmp/
5630

@@ -78,17 +52,52 @@ RUN zypper --non-interactive install --no-recommends libicu libopenssl1_1 /tmp/*
7852
COPY prod.repo /etc/zypp/repos.d/microsoft-dotnet-prod.repo
7953
COPY dotnet-host.check /etc/zypp/systemCheck.d/dotnet-host.check
8054

81-
RUN rm -rf /tmp/* && zypper clean -a && rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
82-
rm -rf {/target,}/run/*; \
83-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
84-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
85-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
86-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
87-
88-
8955

9056
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true
9157
ENV DOTNET_VERSION=9.0.11
9258
RUN useradd --uid=$APP_UID -U -d /app -G '' -ms /bin/bash app
9359
WORKDIR /app
9460
EXPOSE 8080
61+
62+
# image cleanup
63+
RUN set -euo pipefail; zypper -n clean -a; \
64+
rm -vrf /var/log/alternatives.log; \
65+
rm -vrf /var/log/lastlog; \
66+
rm -vrf /var/log/tallylog; \
67+
rm -vrf /var/log/zypper.log; \
68+
rm -vrf /var/log/zypp/history; \
69+
rm -vrf /var/log/YaST2; \
70+
rm -vrf /var/lib/zypp/AnonymousUniqueId; \
71+
rm -vrf /var/cache/zypp/*; \
72+
rm -vrf /run/*; \
73+
rm -vrf /etc/shadow-; \
74+
rm -vrf /etc/group-; \
75+
rm -vrf /etc/passwd-; \
76+
rm -vrf /etc/.pwd.lock; \
77+
rm -vrf /usr/lib/sysimage/rpm/.rpm.lock; \
78+
rm -vrf /var/cache/ldconfig/aux-cache; \
79+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
80+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
81+
82+
# Define labels according to https://en.opensuse.org/Building_derived_containers
83+
# labelprefix=com.suse.bci.dotnet.aspnet
84+
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
85+
LABEL org.opencontainers.image.title="SLE BCI ASP.NET Core Runtime 9.0"
86+
LABEL org.opencontainers.image.description="The ASP.NET Core Runtime 9.0 based on the SUSE Linux Enterprise Base Container Image. The .NET packages contained in this image come from a 3rd-party repository http://packages.microsoft.com. You can find the respective source code in https://github.com/dotnet. SUSE doesn't provide any support or warranties."
87+
LABEL org.opencontainers.image.version="9.0.11"
88+
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
89+
LABEL org.opencontainers.image.created="%BUILDTIME%"
90+
LABEL org.opencontainers.image.vendor="SUSE LLC"
91+
LABEL org.opencontainers.image.source="%SOURCEURL%"
92+
LABEL org.opencontainers.image.ref.name="9.0.11-%RELEASE%"
93+
LABEL org.opensuse.reference="registry.suse.com/bci/dotnet-aspnet:9.0.11-%RELEASE%"
94+
LABEL org.openbuildservice.disturl="%DISTURL%"
95+
LABEL com.suse.supportlevel="techpreview"
96+
LABEL com.suse.supportlevel.until="2026-11-10"
97+
LABEL com.suse.eula="sle-bci"
98+
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
99+
LABEL com.suse.release-stage="released"
100+
# endlabelprefix
101+
LABEL org.opencontainers.image.base.name="%BASE_REFNAME%"
102+
LABEL org.opencontainers.image.base.digest="%BASE_DIGEST%"
103+
LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"

base-fips-image/Dockerfile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,25 @@ FROM registry.suse.com/bci/bci-base:15.7
2424

2525
RUN set -euo pipefail; \
2626
zypper -n install --no-recommends sles-release coreutils crypto-policies-scripts
27-
28-
# cleanup logs and temporary files
27+
# image cleanup
2928
RUN set -euo pipefail; zypper -n clean -a; \
30-
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
31-
rm -rf {/target,}/run/*; \
32-
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
33-
rm -f {/target,}/usr/lib/sysimage/rpm/.rpm.lock; \
34-
rm -f {/target,}/var/cache/ldconfig/aux-cache; \
35-
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled
36-
37-
# set the day of last password change to empty
38-
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
29+
rm -vrf /var/log/alternatives.log; \
30+
rm -vrf /var/log/lastlog; \
31+
rm -vrf /var/log/tallylog; \
32+
rm -vrf /var/log/zypper.log; \
33+
rm -vrf /var/log/zypp/history; \
34+
rm -vrf /var/log/YaST2; \
35+
rm -vrf /var/lib/zypp/AnonymousUniqueId; \
36+
rm -vrf /var/cache/zypp/*; \
37+
rm -vrf /run/*; \
38+
rm -vrf /etc/shadow-; \
39+
rm -vrf /etc/group-; \
40+
rm -vrf /etc/passwd-; \
41+
rm -vrf /etc/.pwd.lock; \
42+
rm -vrf /usr/lib/sysimage/rpm/.rpm.lock; \
43+
rm -vrf /var/cache/ldconfig/aux-cache; \
44+
[ -f /var/lib/zypp/AutoInstalled ] && sed -i '1d' /var/lib/zypp/AutoInstalled; \
45+
sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow
3946

4047
# Define labels according to https://en.opensuse.org/Building_derived_containers
4148
# labelprefix=com.suse.bci.base-fips

0 commit comments

Comments
 (0)