From 0e33cb2bbfc7f5490302b72ff959a4acf0dca934 Mon Sep 17 00:00:00 2001 From: Hadrien Patte Date: Sat, 21 Sep 2024 01:09:53 +0200 Subject: [PATCH] Add dpkg status file to images --- images/prowlarr/Dockerfile | 9 ++++++--- images/qbittorrent/Dockerfile | 9 ++++++--- images/radarr/Dockerfile | 9 ++++++--- images/sonarr/Dockerfile | 9 ++++++--- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/images/prowlarr/Dockerfile b/images/prowlarr/Dockerfile index d82a0cf..629d3e8 100644 --- a/images/prowlarr/Dockerfile +++ b/images/prowlarr/Dockerfile @@ -8,12 +8,15 @@ ARG CHISEL_VERSION # Install chisel and build rootfs with prowlarr dependencies RUN \ go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ - && mkdir /rootfs \ - && chisel cut \ + && curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \ + && chmod +x ./chisel-wrapper \ + && apt update \ + && apt install file --yes \ + && mkdir -p /rootfs/var/lib/dpkg \ + && ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \ --release ubuntu-24.04 \ --root /rootfs \ base-files_base \ - base-files_release-info \ ca-certificates_data \ libicu74_libs \ libsqlite3-0_libs \ diff --git a/images/qbittorrent/Dockerfile b/images/qbittorrent/Dockerfile index e3970dd..a4c5756 100644 --- a/images/qbittorrent/Dockerfile +++ b/images/qbittorrent/Dockerfile @@ -8,12 +8,15 @@ ARG CHISEL_VERSION # Install chisel and build rootfs RUN \ go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ - && mkdir /rootfs \ - && chisel cut \ + && curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \ + && chmod +x ./chisel-wrapper \ + && apt update \ + && apt install file --yes \ + && mkdir -p /rootfs/var/lib/dpkg \ + && ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \ --release ubuntu-24.04 \ --root /rootfs \ base-files_base \ - base-files_release-info \ ca-certificates_data \ && useradd \ --root /rootfs \ diff --git a/images/radarr/Dockerfile b/images/radarr/Dockerfile index d870df1..c225abd 100644 --- a/images/radarr/Dockerfile +++ b/images/radarr/Dockerfile @@ -8,12 +8,15 @@ ARG CHISEL_VERSION # Install chisel and build rootfs with radarr dependencies RUN \ go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ - && mkdir /rootfs \ - && chisel cut \ + && curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \ + && chmod +x ./chisel-wrapper \ + && apt update \ + && apt install file --yes \ + && mkdir -p /rootfs/var/lib/dpkg \ + && ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \ --release ubuntu-24.04 \ --root /rootfs \ base-files_base \ - base-files_release-info \ ca-certificates_data \ libicu74_libs \ libsqlite3-0_libs \ diff --git a/images/sonarr/Dockerfile b/images/sonarr/Dockerfile index f34c461..9bee003 100644 --- a/images/sonarr/Dockerfile +++ b/images/sonarr/Dockerfile @@ -8,12 +8,15 @@ ARG CHISEL_VERSION # Install chisel and build rootfs with sonarr dependencies RUN \ go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ - && mkdir /rootfs \ - && chisel cut \ + && curl -LO https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \ + && chmod +x ./chisel-wrapper \ + && apt update \ + && apt install file --yes \ + && mkdir -p /rootfs/var/lib/dpkg \ + && ./chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \ --release ubuntu-24.04 \ --root /rootfs \ base-files_base \ - base-files_release-info \ ca-certificates_data \ libicu74_libs \ libsqlite3-0_libs \