Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions kea-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@
#!BuildTag: suse/kea:3.0
#!BuildName: suse-kea-3.0
#!BuildVersion: 16.0.3.0
FROM registry.suse.com/bci/bci-base:16.0
FROM registry.suse.com/bci/bci-micro:16.0 AS target
FROM bci/bci-base:16.0 AS builder
COPY --from=target / /target

RUN set -euo pipefail; \
zypper -n install --no-recommends kea util-linux
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends kea util-linux

RUN set -euo pipefail; zypper -n install --no-recommends systemd && \
systemd-tmpfiles --create --root /target

# cleanup logs and temporary files
RUN set -euo pipefail; zypper -n clean -a; \
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}; \
rm -rf {/target,}/run/*; \
rm -f {/target,}/etc/{shadow-,group-,passwd-,.pwd.lock}; \
Expand All @@ -34,8 +40,9 @@ RUN set -euo pipefail; zypper -n clean -a; \
command -v zypper >/dev/null 2>&1 || rm -f /var/lib/zypp/AutoInstalled

# set the day of last password change to empty
RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /etc/shadow

RUN set -euo pipefail; sed -i 's/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1\2/' /target/etc/shadow
FROM registry.suse.com/bci/bci-micro:16.0
COPY --from=builder /target /
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.application.kea
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
Expand Down
5 changes: 5 additions & 0 deletions kea-image/kea-image.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 3 09:38:21 UTC 2026 - SUSE Update Bot <bci-internal@suse.de>

- add systemd-tmpfiles to create necessary directories outside /usr

-------------------------------------------------------------------
Thu Jan 1 14:16:03 UTC 2026 - SUSE Update Bot <bci-internal@suse.de>

Expand Down