Skip to content

Commit

Permalink
Use checksums file instead of flag
Browse files Browse the repository at this point in the history
I guess Buildah doesn't support that flag on ADD commands
  • Loading branch information
samhclark authored Aug 13, 2024
1 parent bf36caf commit 38c40f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 38c40f7

Please sign in to comment.