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

docker image and chart dependencies #114

Open
gimler opened this issue Mar 18, 2021 · 1 comment
Open

docker image and chart dependencies #114

gimler opened this issue Mar 18, 2021 · 1 comment

Comments

@gimler
Copy link
Contributor

gimler commented Mar 18, 2021

Remote dependencies does not work with docker image

Chart.yaml

dependencies:
- name: redis-ha
  version: "4.12.9"
  repository: "https://dandydeveloper.github.io/charts"

command running from docker image

cr package charts/sap-event-ticketing/

error

Error: no repository definition for https://dandydeveloper.github.io/charts

workaround add helm and repo than it works

apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
helm repo add dandydev https://dandydeveloper.github.io/charts

Solution 1:
Install helm into the docker image

Solution 2:
let chart-releaser fetch the repo data to

~/.cache/helm/repository/dandydev-charts.txt
~/.cache/helm/repository/dandydev-index.yaml

Solution 3:
Install helm into the docker image and use helm package instate of cr package with --repository-config option. Use ~/.config/helm/repositories.yaml as example

I would prefer to install helm into the docker image.

@gcaracuel
Copy link

Another solution is what chart-testing does including a config parameter to setup those repositories: 'chart-repos'.

It does work nice and allows users to setup internal only repos as explained in their README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants