Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for alpine #4

Closed
qrevel opened this issue Jun 20, 2018 · 4 comments
Closed

Support for alpine #4

qrevel opened this issue Jun 20, 2018 · 4 comments
Labels
good first issue Good for newcomers

Comments

@qrevel
Copy link

qrevel commented Jun 20, 2018

It is actually impossible to install this plugin in an alpine image with helm.

The current workaround is to install bash but it would be great it scripts could be used from alpine sh shell.

@jdolitsky
Copy link
Contributor

@qrevel good point. this should be doable.

@jdolitsky
Copy link
Contributor

@qrevel this should be fixed in master, can you confirm on your end?

It appears that ca-certificates package is required for helm init, and git is required for helm plugin install

$ docker run --rm  -w=/tmp --entrypoint=sh alpine:latest -c \
  'apk add --no-cache ca-certificates git && \
   wget https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz && \
   tar -zxvf helm-v2.9.1-linux-amd64.tar.gz && \
   mv linux-amd64/helm /usr/local/bin && \
   helm init --client-only && \
   helm plugin install https://github.com/chartmuseum/helm-push && \
   helm push --help'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/7) Installing ca-certificates (20171114-r3)
(2/7) Installing nghttp2-libs (1.32.0-r0)
(3/7) Installing libssh2 (1.8.0-r3)
(4/7) Installing libcurl (7.61.0-r0)
(5/7) Installing expat (2.2.5-r0)
(6/7) Installing pcre2 (10.31-r0)
(7/7) Installing git (2.18.0-r0)
Executing busybox-1.28.4-r0.trigger
Executing ca-certificates-20171114-r3.trigger
OK: 19 MiB in 20 packages
Connecting to storage.googleapis.com (172.217.5.16:443)
helm-v2.9.1-linux-am  14% |****                           |  1264k  0:00:06 ETA
helm-v2.9.1-linux-am  45% |**************                 |  4096k  0:00:02 ETA
helm-v2.9.1-linux-am  79% |************************       |  7088k  0:00:00 ETA
helm-v2.9.1-linux-am 100% |*******************************|  8946k  0:00:00 ETA

linux-amd64/
linux-amd64/README.md
linux-amd64/helm
linux-amd64/LICENSE
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Not installing Tiller due to 'client-only' flag having been set
Happy Helming!
Downloading and installing helm-push v0.4.0 ...
https://github.com/chartmuseum/helm-push/releases/download/v0.4.0/helm-push_0.4.0_linux_amd64.tar.gz
Installed plugin: push
Helm plugin to push chart package to ChartMuseum

Examples:

  $ helm push mychart-0.1.0.tgz chartmuseum       # push .tgz from "helm package"
  $ helm push . chartmuseum                       # package and push chart directory
  $ helm push . --version="7c4d121" chartmuseum   # override version in Chart.yaml

Usage:
  helm push [flags]

Flags:
      --access-token string   Send token in Authorization header [$HELM_REPO_ACCESS_TOKEN]
      --auth-header string    Alternative header to use for token auth [$HELM_REPO_AUTH_HEADER]
      --context-path string   ChartMuseum context path [$HELM_REPO_CONTEXT_PATH]
  -h, --help                  help for helm
  -p, --password string       Override HTTP basic auth password [$HELM_REPO_PASSWORD]
  -u, --username string       Override HTTP basic auth username [$HELM_REPO_USERNAME]
  -v, --version string        Override chart version pre-push

@jdolitsky
Copy link
Contributor

Support added in v0.5.0

@jdolitsky jdolitsky mentioned this issue Jul 18, 2018
@qrevel
Copy link
Author

qrevel commented Jul 18, 2018

thx

arechavarria pushed a commit to arechavarria/helm-push that referenced this issue Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants