-
Notifications
You must be signed in to change notification settings - Fork 17
HYPERFLEET-1057 - feat: Fix e2e dockerfile to properly install helm p… #125
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,13 @@ RUN curl -fsSL "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release | |
| # Install Helm | ||
| RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | ||
|
|
||
| # Set up Helm environment for plugin installation | ||
| RUN mkdir -p /tmp/helm-home && chmod 755 /tmp/helm-home | ||
| ENV HELM_CACHE_HOME=/tmp/helm-home/.cache/helm \ | ||
| HELM_CONFIG_HOME=/tmp/helm-home/.config/helm \ | ||
| HELM_DATA_HOME=/tmp/helm-home/.local/share/helm \ | ||
| HELM_PLUGINS=/usr/local/share/helm/plugins | ||
|
Comment on lines
+43
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested fix-RUN mkdir -p /tmp/helm-home && chmod 755 /tmp/helm-home
+RUN mkdir -p /tmp/helm-home && \
+ chgrp -R 0 /tmp/helm-home && \
+ chmod -R g=u /tmp/helm-homeAs per coding guidelines, “Do not run as root — use USER with a non-root UID” and container permissions must avoid insecure/broken access patterns. 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
|
|
||
| # Install Helm plugins - helm-git and helm-diff | ||
| ARG HELM_GIT_VERSION=v1.5.2 | ||
| ARG HELM_DIFF_VERSION=3.15.7 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.