diff --git a/Others/dhcp/4.4.3/24.03-lts-sp2/Dockerfile b/Others/dhcp/4.4.3/24.03-lts-sp2/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..bc5106f54f06139d0c8169affe6f5cc57752efcd --- /dev/null +++ b/Others/dhcp/4.4.3/24.03-lts-sp2/Dockerfile @@ -0,0 +1,20 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} as BUILDER +ARG VERSION=4.4.3 + +RUN dnf update -y \ + && dnf install -y wget gcc-c++ make libtool perl \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +RUN wget https://ftp.isc.org/isc/dhcp/${VERSION}/dhcp-${VERSION}.tar.gz \ + && tar -xf dhcp-${VERSION}.tar.gz \ + && rm -f dhcp-${VERSION}.tar.gz \ + && cd dhcp-${VERSION} \ + && ./configure --prefix=/usr/local/dhcp \ + && make -j$(nproc) \ + && make install + +RUN mkdir -p /var/db && touch /var/db/dhcpd.leases + +CMD ["/usr/local/dhcp/sbin/dhcpd", "--help"] \ No newline at end of file diff --git a/Others/dhcp/README.md b/Others/dhcp/README.md index f6a4ef31b1c04203a375e693bb7456471eefb318..559160c0c74577584c36f4dfa932c2b5be2d539e 100644 --- a/Others/dhcp/README.md +++ b/Others/dhcp/README.md @@ -18,6 +18,7 @@ The tag of each `dhcp` docker image is consist of the version of `dhcp` and the | Tag | Currently | Architectures | |----------|-------------|------------------| +|[4.4.3-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dhcp/4.4.3/24.03-lts-sp2/Dockerfile) | dhcp 4.4.3 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[4.4.3-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dhcp/4.4.3/24.03-lts-sp1/Dockerfile)| DHCP 4.4.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 | # Usage diff --git a/Others/dhcp/doc/image-info.yml b/Others/dhcp/doc/image-info.yml index f54227b4c191a55710502088816646f817eebba4..f6ebeb3cf2f61193b1c3059f675f968064e59a3d 100644 --- a/Others/dhcp/doc/image-info.yml +++ b/Others/dhcp/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[4.4.3-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dhcp/4.4.3/24.03-lts-sp2/Dockerfile) | dhcp 4.4.3 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[4.4.3-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/dhcp/4.4.3/24.03-lts-sp1/Dockerfile)| DHCP 4.4.3 on openEuler 24.03-LTS-SP1 | amd64, arm64 | download: | diff --git a/Others/dhcp/meta.yml b/Others/dhcp/meta.yml index 2f7679a82a476da5a99b2a7630f929f641c8d46d..a5e340df4fcc1616b490dd515b2a7f7c5481c58e 100644 --- a/Others/dhcp/meta.yml +++ b/Others/dhcp/meta.yml @@ -1,3 +1,6 @@ 4.4.3-oe2403sp1: path: 4.4.3/24.03-lts-sp1/Dockerfile + +4.4.3-oe2403sp2: + path: 4.4.3/24.03-lts-sp2/Dockerfile \ No newline at end of file