Page MenuHomeVyOS Platform

Packer download url in Dockerfile is broken
Closed, InvalidPublicBUG

Description

packer download url https://releases.hashicorp.com/packer/v1.4.1/packer_v1.4.1_linux_amd64.zip in Dockerfile is now wrong.
Right url: https://releases.hashicorp.com/packer/1.4.1/packer_1.4.1_linux_amd64.zip
need to add

jq -r -M '.current_version' | sed s/^v//  )"; \

to fix

Details

Difficulty level
Easy (less than an hour)
Version
1.2
Why the issue appeared?
Other

Event Timeline

c-po triaged this task as High priority.
c-po added a project: VyOS 1.3 Equuleus.
c-po changed Why the issue appeared? from Will be filled on close to Other.

Can't reproduce the issue using commit 217aa6afaeb of vyos-build repo

 ---> fe8651ae7e9b
Step 49/54 : RUN 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 &&     chmod +x /usr/bin/packer
 ---> Running in dad14d14d1a3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 40.9M  100 40.9M    0     0  12.0M      0  0:00:03  0:00:03 --:--:-- 12.0M

Build Docker container two times on different machines (Linux host and macOS host) ... no problems detected. closing this.

I assume you use an outdated Dockerfile

c-po removed a project: VyOS 1.3 Equuleus.