Skip to content

Commit

Permalink
Adding ENV VARS in index.js that matches DockerFile's
Browse files Browse the repository at this point in the history
  • Loading branch information
miagao committed Jan 24, 2024
1 parent 4340e05 commit 919a446
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ ENV BASE_URL="https://get.helm.sh"

ENV HELM_2_FILE="helm-v2.17.0-linux-amd64.tar.gz"
ENV HELM_3_FILE="helm-v3.6.3-linux-amd64.tar.gz"
ENV HELM_CACHE_HOME="/github/home/.cache/helm"
ENV HELM_CONFIG_HOME="/github/home/.config/helm"
ENV HELM_DATA_HOME="/github/home/.local/share/helm"
ENV HELM_PLUGINS="/github/home/.local/share/helm/plugins"
ENV HELM_REGISTRY_CONFIG="/github/home/.config/helm/registry.json"
ENV HELM_REPOSITORY_CACHE="/github/home/.cache/helm/repository"
ENV HELM_REPOSITORY_CONFIG="/github/home/.config/helm/repositories.yaml"


RUN apk add --no-cache ca-certificates \
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
Expand Down
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ async function run() {
process.env.XDG_DATA_HOME = "/root/.helm/"
process.env.XDG_CACHE_HOME = "/root/.helm/"
process.env.XDG_CONFIG_HOME = "/root/.helm/"
process.env.HELM_CACHE_HOME="/root/.cache/helm"
process.env.HELM_CONFIG_HOME="/root/.config/helm"
process.env.HELM_DATA_HOME="/root/.local/share/helm"
process.env.HELM_PLUGINS="/root/.local/share/helm/plugins"
process.env.HELM_REGISTRY_CONFIG="/root/.config/helm/registry.json"
process.env.HELM_REPOSITORY_CACHE="/root/.cache/helm/repository"
process.env.HELM_REPOSITORY_CONFIG="/root/.config/helm/repositories.yaml"
} else {
process.env.HELM_HOME = "/root/.helm/"
}
Expand Down

0 comments on commit 919a446

Please sign in to comment.