|
| 1 | +# SPDX-License-Identifier: MPL-2.0 |
| 2 | + |
| 3 | +# Copyright (c) 2025 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | +#!UseOBSRepositories |
| 17 | + |
| 18 | +#!BuildTag: suse/kea:2.6-%RELEASE% |
| 19 | +#!BuildTag: suse/kea:2.6 |
| 20 | +#!BuildName: suse-kea-2.6 |
| 21 | +#!BuildVersion: 16.0.2.6 |
| 22 | +FROM bci/bci-base:16.0 |
| 23 | + |
| 24 | +RUN set -euo pipefail; \ |
| 25 | + zypper -n install --no-recommends kea util-linux |
| 26 | +RUN set -euo pipefail; zypper -n clean -a; \ |
| 27 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} |
| 28 | + |
| 29 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 30 | +# labelprefix=com.suse.application.kea |
| 31 | +LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" |
| 32 | +LABEL org.opencontainers.image.title="SLE Kea DHCP Server" |
| 33 | +LABEL org.opencontainers.image.description="Kea DHCP Server container based on the SLE Base Container Image." |
| 34 | +LABEL org.opencontainers.image.version="2.6" |
| 35 | +LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" |
| 36 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 37 | +LABEL org.opencontainers.image.vendor="SUSE LLC" |
| 38 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 39 | +LABEL org.opencontainers.image.ref.name="2.6-%RELEASE%" |
| 40 | +LABEL org.opensuse.reference="registry.suse.com/suse/kea:2.6-%RELEASE%" |
| 41 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 42 | +LABEL com.suse.supportlevel="techpreview" |
| 43 | +LABEL com.suse.eula="sle-eula" |
| 44 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle" |
| 45 | +LABEL com.suse.release-stage="beta" |
| 46 | +# endlabelprefix |
| 47 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%" |
| 48 | +LABEL run="podman run --replace -it --privileged --network=host --name kea-dhcp4 -v /etc/kea:/etc/kea IMAGE kea-dhcp4 -c /etc/kea/kea-dhcp4.conf" |
| 49 | +LABEL runcwd="podman run --replace -it --privileged --network=host --name kea-dhcp4 -v .:/etc/kea IMAGE kea-dhcp4 -c /etc/kea/kea-dhcp4.conf" |
| 50 | +LABEL run_dhcp6="podman run --replace -it --privileged --network=host --name kea-dhcp6 -v /etc/kea:/etc/kea IMAGE kea-dhcp6 -c /etc/kea/kea-dhcp6.conf" |
| 51 | +LABEL runcwd_dhcp6="podman run --replace -it --privileged --network=host --name kea-dhcp6 -v .:/etc/kea IMAGE kea-dhcp6 -c /etc/kea/kea-dhcp6.conf" |
| 52 | +EXPOSE 67/tcp 67/udp |
| 53 | + |
| 54 | +ENV KEA_PIDFILE_DIR="/var/run/kea" |
| 55 | +RUN install -m 0750 -o root -g root -d /var/run/kea |
0 commit comments