summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorC.J. Collier <cjcollier@colliertech.org>2024-05-22 10:04:51 -0700
committerC.J. Collier <cjcollier@colliertech.org>2024-05-28 13:41:10 -0700
commit304874d8ab0de074804fe176374dec1d1eb9b039 (patch)
treedf0e378d4b83277b0b3fa3a68a8e7dae4a1514dc /docker
parent1b0f1d907b77d62b0b5b95f12fe8da2844500ca7 (diff)
downloadvyos-build-304874d8ab0de074804fe176374dec1d1eb9b039.tar.gz
vyos-build-304874d8ab0de074804fe176374dec1d1eb9b039.zip
packer: T6390: Compensate for packer packaging update
new packer zip file comes with license as well as the packer binary. compensate for this while not breaking old code
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile7
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