From 8ef649c3629822eb23b529fe2d6cfe2be4f95620 Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Thu, 11 Jan 2024 10:29:20 -0800 Subject: [PATCH 1/2] Update Dockerfile --- podman-update/build/Dockerfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/podman-update/build/Dockerfile b/podman-update/build/Dockerfile index 109bc827..328e371d 100644 --- a/podman-update/build/Dockerfile +++ b/podman-update/build/Dockerfile @@ -22,7 +22,7 @@ COPY ./net.Makefile.patch /tmp RUN git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu && patch Makefile /tmp/net.Makefile.patch RUN make build -FROM golang:1.18.3-stretch +FROM golang:1.21.6-bookworm # Currenrtly supported versions: UDM-Base UDM-Pro-SE ARG UDM_PLATFORM=UDM-Base @@ -41,7 +41,11 @@ RUN mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/bin \ COPY --from=rust /tmp/work/netavark/bin/* /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/libexec/podman # Install dependencies -RUN apt-get update && apt-get install -y \ +RUN dpkg --add-architecture arm64 && apt-get update && apt-get install -y \ + gperf:arm64 \ + libglib2.0-dev:arm64 \ + libseccomp-dev:arm64 \ + libsystemd-dev:arm64 \ bc \ binutils-aarch64-linux-gnu \ bison \ @@ -57,13 +61,7 @@ RUN apt-get update && apt-get install -y \ systemd \ zip \ && rm -rf /var/lib/apt/lists/* -RUN dpkg --add-architecture arm64 -RUN apt-get update && apt-get install -y \ - gperf:arm64 \ - libglib2.0-dev:arm64 \ - libseccomp-dev:arm64 \ - libsystemd-dev:arm64 \ - && rm -rf /var/lib/apt/lists/* + ENV GOOS=linux From 949d2fb1567e421f4479401c6a3ece6ae88103a4 Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Thu, 11 Jan 2024 10:34:23 -0800 Subject: [PATCH 2/2] Update Dockerfile --- podman-update/build/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/podman-update/build/Dockerfile b/podman-update/build/Dockerfile index 328e371d..cacebf64 100644 --- a/podman-update/build/Dockerfile +++ b/podman-update/build/Dockerfile @@ -2,7 +2,7 @@ FROM rust as rust RUN mkdir -p /tmp/work WORKDIR /tmp/work -ARG NETAVARK_VERSION=v1.6.0 +ARG NETAVARK_VERSION=v1.9.0 RUN apt-get update && apt-get install -y \ bc \ binutils-aarch64-linux-gnu \ @@ -19,8 +19,7 @@ RUN git clone https://github.com/containers/netavark/ && mkdir -p /tmp/work/net WORKDIR /tmp/work/netavark COPY config.toml ./.cargo/config.toml COPY ./net.Makefile.patch /tmp -RUN git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu && patch Makefile /tmp/net.Makefile.patch -RUN make build +RUN git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu && patch Makefile /tmp/net.Makefile.patch && make build FROM golang:1.21.6-bookworm