cloud-builders-community
cloud-builders-community copied to clipboard
helmfile: fix dockerfile issues
Tried assembling/using this container in a Cloud Build recently, it didn't work as expected when running it:
Fetching cluster endpoint and auth data.
kubeconfig entry generated for acme-kube-cluster.
/builder/helmfile/helmfile: line 1: Not: command not found
(/builder/helmfile/helmfile
is a 9-byte file with the contents Not Found
)
These changes restore it to functional order:
- references the correct github repo/URI for the download (helmfile/helmfile)
- stages the tarball/extracts the
helmfile
properly - added
-f
to thecurl
call so that, if the URI moves on thehelmfile
tarball again, it'll fail the container build - update the default versions of both helm/helmfile in the yaml to the latest & greatest
The container both builds and runs as expected now:
Fetching cluster endpoint and auth data.
kubeconfig entry generated for acme-kube-cluster.
Adding repo acme-project https://acme.project.tld
"acme-project" has been added to your repositories
...
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.