packer-plugin-goss icon indicating copy to clipboard operation
packer-plugin-goss copied to clipboard

Set HTTP_PROXY gets ignored for goss binary download

Open MaxRink opened this issue 4 years ago • 1 comments

We are running our packer CI in an environment where you need an http_proxy to connect to the internet (or most other services for that matter) The provisioner doesnt seem to care about the proxy being set. Thus the download from github just fails.

==> vsphere: Provisioning with Goss
    vsphere: Installing Goss from, https://github.com/aelsabbahy/goss/releases/download/v0.3.13/goss-linux-amd64
    vsphere: Downloading Goss to /tmp/goss-0.3.13-linux-amd64
==> vsphere:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
==> vsphere:                                  Dload  Upload   Total   Spent    Left  Speed
==> vsphere:   0     0    0     0    0     0      0      0 --:--:--  0:02:10 --:--:--     0curl: (7) Failed to connect to github.com port 443: Connection timed out
==> vsphere: --2020-12-02 14:52:58--  https://github.com/aelsabbahy/goss/releases/download/v0.3.13/goss-linux-amd64
==> vsphere: Resolving github.com (github.com)... 140.82.121.4
==> vsphere: Connecting to github.com (github.com)|140.82.121.4|:443... failed: Connection timed out.
==> vsphere: Retrying.
==> vsphere:
==> vsphere: --2020-12-02 14:55:10--  (try: 2)  https://github.com/aelsabbahy/goss/releases/download/v0.3.13/goss-linux-amd64

MaxRink avatar Dec 02 '20 14:12 MaxRink

Btw, http proxy support for goss just landed https://github.com/aelsabbahy/goss/pull/589

MaxRink avatar Dec 02 '20 17:12 MaxRink

marking as closed

btassone avatar Oct 21 '23 00:10 btassone