diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-29 08:27:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 08:27:56 +0200 |
commit | b3da0d46ea029b65a8853b3197374931703a4b60 (patch) | |
tree | 663aaf4846e252b78db0794a7b1061249b60adc9 | |
parent | 4b60aa471524e87824416cc44b313cc2239d7e4a (diff) | |
parent | 304874d8ab0de074804fe176374dec1d1eb9b039 (diff) | |
download | vyos-build-b3da0d46ea029b65a8853b3197374931703a4b60.tar.gz vyos-build-b3da0d46ea029b65a8853b3197374931703a4b60.zip |
Merge pull request #633 from cjac/cjac-equuleus
packer: T6390: Compensate for packer packaging update
-rw-r--r-- | docker/Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 0518a601..dfa71ad1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -201,8 +201,11 @@ RUN wget https://salsa.debian.org/klausenbusk-guest/debootstrap/commit/a9a603b17 RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \ export LATEST="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | \ jq -r -M '.current_version')"; \ - echo "url https://releases.hashicorp.com/packer/${LATEST}/packer_${LATEST}_linux_amd64.zip" |\ - curl -K- | gzip -d > /usr/bin/packer && \ + export ZIP="packer_${LATEST}_linux_amd64.zip"; \ + echo "url https://releases.hashicorp.com/packer/${LATEST}/${ZIP}" |\ + curl -K- | dd of=/tmp/${ZIP} ; \ + unzip -d /tmp /tmp/${ZIP} ;\ + mv /tmp/packer /usr/bin/packer && \ chmod +x /usr/bin/packer; \ fi |