From 38c40f774a4e17c47b66cbf4fa247281f8711430 Mon Sep 17 00:00:00 2001 From: Sam Clark <1059176+samhclark@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:40:57 -0500 Subject: [PATCH] Use checksums file instead of flag I guess Buildah doesn't support that flag on ADD commands --- Containerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index a448bdc..7ce2478 100644 --- a/Containerfile +++ b/Containerfile @@ -3,10 +3,12 @@ FROM quay.io/fedora-ostree-desktops/silverblue:40 as silverblue COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo COPY vscode.repo /etc/yum.repos.d/vscode.repo COPY custom-origin.yaml /etc/rpm-ostree/origin.d/custom-origin.yaml +COPY checksums /tmp/checksums -ADD --checksum=ba644d1ec8749e50863badf56620c453544b82f917ac13eb03f8c5c105825fb4 https://desktop.docker.com/linux/main/amd64/160616/docker-desktop-x86_64.rpm /tmp/docker-desktop-x86_64.rpm +ADD https://desktop.docker.com/linux/main/amd64/160616/docker-desktop-x86_64.rpm /tmp/docker-desktop-x86_64.rpm -RUN rpm-ostree ex rebuild \ +RUN sha256sum -c checksums \ + && rpm-ostree ex rebuild \ && rpm-ostree install --cache-only /tmp/docker-desktop-x86_64.rpm \ && rm -f /tmp/docker-desktop-x86_64.rpm && systemctl enable rpm-ostreed-automatic.timer \