curl -s https://get.helm.sh | bash is not working
bacongobbler opened this issue · 3 comments
bacongobbler commented
><> mkdir /tmp/helm
><> cd /tmp/helm/
><> curl -s https://get.helm.sh | bash
Downloading helmc-0.8.1+e4b3983-linux-amd64.zip from Bintray...
><> ls -al
total 2772
drwxr-xr-x 2 bacongobbler bacongobbler 4096 Jun 7 14:33 .
drwxrwxrwt 32 root root 2830336 Jun 7 14:33 ..
bacongobbler commented
re-opening. downloading the script and running locally with set -x
shows this:
root@93469e56b0fd:/tmp# ./get-helm.sh
+ PROGRAM=helmc
++ uname
++ tr '[:upper:]' '[:lower:]'
+ PLATFORM=linux
++ uname -m
+ ARCH=x86_64
+ HELM_ARTIFACT_REPO=helm
+ HELM_VERSION_URL=https://bintray.com/deis/helm/helmc/_latestVersion
+ HELM_BIN_URL_BASE=https://dl.bintray.com/deis/helm
+ '[' x86_64 == x86_64 ']'
+ ARCH=amd64
+ check_platform_arch
+ local 'supported=linux-amd64 linux-i386 darwin-amd64 darwin-i386'
+ echo 'linux-amd64 linux-i386 darwin-amd64 darwin-i386'
+ tr ' ' '\n'
+ grep -q linux-amd64
++ get_latest_version https://bintray.com/deis/helm/helmc/_latestVersion
++ local url=https://bintray.com/deis/helm/helmc/_latestVersion
++ local version
+++ curl -sI https://bintray.com/deis/helm/helmc/_latestVersion
+++ sed -n 's%.*helmc/%%;s%/view.*%%p'
+++ grep Location:
++ version=0.8.1%2Be4b3983
++ '[' -z 0.8.1%2Be4b3983 ']'
++ url_decode 0.8.1%2Be4b3983
++ local url_encoded=0.8.1%2Be4b3983
++ printf %b '0.8.1\x2Be4b3983'
+ VERSION=0.8.1+e4b3983
+ HELM_ZIP=helmc-0.8.1+e4b3983-linux-amd64.zip
+ echo 'Downloading helmc-0.8.1+e4b3983-linux-amd64.zip from Bintray...'
Downloading helmc-0.8.1+e4b3983-linux-amd64.zip from Bintray...
+ curl -Ls https://dl.bintray.com/deis/helm/helmc-0.8.1+e4b3983-linux-amd64.zip -O
And then running that command locally within the container shows me this:
root@93469e56b0fd:/tmp# curl -L https://dl.bintray.com/deis/helm/helmc-0.8.1+e4b3983-linux-amd64.zip -O
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
😭
bacongobbler commented
interestingly enough this has now been silently fixed. closing.
mboersma commented
I just tried this on Mac OS X and Linux (alpine 3.4) and it's currently downloading without problems. 😖