Skip to content

Commit

Permalink
packer: T6390: Compensate for packer packaging update
Browse files Browse the repository at this point in the history
new packer zip file comes with license as well as the packer binary.
compensate for this while not breaking old code
  • Loading branch information
C.J. Collier committed May 28, 2024
1 parent 1b0f1d9 commit 304874d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 304874d

Please sign in to comment.