aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra/pxe/docker-dnsmasq/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra/pxe/docker-dnsmasq/Dockerfile')
-rw-r--r--fdio.infra/pxe/docker-dnsmasq/Dockerfile34
1 files changed, 17 insertions, 17 deletions
diff --git a/fdio.infra/pxe/docker-dnsmasq/Dockerfile b/fdio.infra/pxe/docker-dnsmasq/Dockerfile
index 6c7dd5a16a..4ac1ec21ed 100644
--- a/fdio.infra/pxe/docker-dnsmasq/Dockerfile
+++ b/fdio.infra/pxe/docker-dnsmasq/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:22.04 as ubuntu_jammy
+FROM ubuntu:24.04 as ubuntu_noble
LABEL Description="ubuntu intermediate image"
LABEL Version="2.0"
@@ -7,29 +7,29 @@ RUN apt update \
&& apt install -y wget genisoimage syslinux-common \
&& mkdir -p /var/lib/tftpboot/grub \
&& mkdir -p /var/lib/tftpboot/grub/fonts \
- && mkdir -p /var/lib/tftpboot/casper/ubuntu-jammy-amd64/ \
- && mkdir -p /var/lib/tftpboot/casper/ubuntu-jammy-arm64/
+ && mkdir -p /var/lib/tftpboot/casper/ubuntu-noble-amd64/ \
+ && mkdir -p /var/lib/tftpboot/casper/ubuntu-noble-arm64/
-ENV ISO_JAMMY_AMD64 https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04.1-live-server-amd64.iso
-ENV ISO_JAMMY_ARM64 https://old-releases.ubuntu.com/releases/22.04.1/ubuntu-22.04.1-live-server-arm64.iso
-ENV EFI_JAMMY_AMD64 http://archive.ubuntu.com/ubuntu/dists/jammy/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
-ENV EFI_JAMMY_ARM64 http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/uefi/grub2-arm64/current/grubnetaa64.efi.signed
+ENV ISO_NOBLE_AMD64 https://releases.ubuntu.com/releases/noble/ubuntu-24.04-live-server-amd64.iso
+ENV ISO_NOBLE_ARM64 https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-arm64.iso
+ENV EFI_NOBLE_AMD64 http://archive.ubuntu.com/ubuntu/dists/jammy/main/uefi/grub2-amd64/current/grubnetx64.efi.signed
+ENV EFI_NOBLE_ARM64 http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/uefi/grub2-arm64/current/grubnetaa64.efi.signed
RUN echo "Preparing Grub EFI Binary" \
- && wget $EFI_JAMMY_AMD64 -O /var/lib/tftpboot/grubx64.efi \
- && wget $EFI_JAMMY_ARM64 -O /var/lib/tftpboot/grubaa64.efi \
+ && wget $EFI_NOBLE_AMD64 -O /var/lib/tftpboot/grubx64.efi \
+ && wget $EFI_NOBLE_ARM64 -O /var/lib/tftpboot/grubaa64.efi \
&& apt download shim-signed \
&& dpkg-deb --fsys-tarfile shim-signed*deb | tar x ./usr/lib/shim/shimx64.efi.signed.latest -O > /var/lib/tftpboot/bootx64.efi \
&& apt download grub-common \
&& dpkg-deb --fsys-tarfile grub-common*deb | tar x ./usr/share/grub/unicode.pf2 -O > /var/lib/tftpboot/grub/fonts/unicode.pf2
RUN echo "Preparing Casper Kernel" \
- && wget $ISO_JAMMY_AMD64 -O /ubuntu-22.04.1-live-server-amd64.iso \
- && isoinfo -i /ubuntu-22.04.1-live-server-amd64.iso -x "/CASPER/INITRD.;1" > /var/lib/tftpboot/casper/ubuntu-jammy-amd64/initrd \
- && isoinfo -i /ubuntu-22.04.1-live-server-amd64.iso -x "/CASPER/VMLINUZ.;1" > /var/lib/tftpboot/casper/ubuntu-jammy-amd64/vmlinuz \
- && wget $ISO_JAMMY_ARM64 -O /ubuntu-22.04.1-live-server-arm64.iso \
- && isoinfo -i /ubuntu-22.04.1-live-server-arm64.iso -x "/CASPER/INITRD.;1" > /var/lib/tftpboot/casper/ubuntu-jammy-arm64/initrd \
- && isoinfo -i /ubuntu-22.04.1-live-server-arm64.iso -x "/CASPER/VMLINUZ.;1" > /var/lib/tftpboot/casper/ubuntu-jammy-arm64/vmlinuz
+ && wget $ISO_NOBLE_AMD64 -O /ubuntu-24.04-live-server-amd64.iso \
+ && isoinfo -i /ubuntu-24.04-live-server-amd64.iso -x "/CASPER/INITRD.;1" > /var/lib/tftpboot/casper/ubuntu-noble-amd64/initrd \
+ && isoinfo -i /ubuntu-24.04-live-server-amd64.iso -x "/CASPER/VMLINUZ.;1" > /var/lib/tftpboot/casper/ubuntu-noble-amd64/vmlinuz \
+ && wget $ISO_NOBLE_ARM64 -O /ubuntu-24.04-live-server-arm64.iso \
+ && isoinfo -i /ubuntu-24.04-live-server-arm64.iso -x "/CASPER/INITRD.;1" > /var/lib/tftpboot/casper/ubuntu-noble-arm64/initrd \
+ && isoinfo -i /ubuntu-24.04-live-server-arm64.iso -x "/CASPER/VMLINUZ.;1" > /var/lib/tftpboot/casper/ubuntu-noble-arm64/vmlinuz
FROM alpine
@@ -40,7 +40,7 @@ RUN apk add --update --no-cache dnsmasq \
&& rm -rf /var/cache/apk/*
# Extract installer from previous image.
-COPY --from=ubuntu_jammy /var/lib/tftpboot /var/lib/tftpboot
+COPY --from=ubuntu_noble /var/lib/tftpboot /var/lib/tftpboot
# Configure PXE.
COPY tftpboot/ /var/lib/tftpboot/
@@ -50,4 +50,4 @@ COPY etc/ /etc/
# Start dnsmasq. It picks up default configuration from /etc/dnsmasq.conf and
# /etc/default/dnsmasq plus any command line switch
-ENTRYPOINT ["sh","-c","dnsmasq","--interface=$E_INT","--listen-address=$E_ADD"] \ No newline at end of file
+ENTRYPOINT ["sh","-c","dnsmasq","--interface=$E_INT","--listen-address=$E_ADD"]