-
Notifications
You must be signed in to change notification settings - Fork 1.2k
import helm-bin from local for cacheruntime #5795
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
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 |
|---|---|---|
|
|
@@ -10,21 +10,17 @@ RUN make cacheruntime-controller-build && \ | |
| cp bin/cacheruntime-controller /go/bin/cacheruntime-controller | ||
| RUN bash hack/helm/pin_runtime_chart_version.sh "${FLUID_VERSION}" | ||
|
|
||
| # alpine:3.20.6 | ||
| FROM alpine:3.20.6@sha256:de4fe7064d8f98419ea6b49190df1abbf43450c1702eeb864fe9ced453c1cc5f | ||
| # alpine:3.23.3 | ||
| FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 | ||
| RUN apk add --update bash curl wget iproute2 libc6-compat tzdata vim && \ | ||
| rm -rf /var/cache/apk/* && \ | ||
| cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | ||
| echo "Asia/Shanghai" > /etc/timezone | ||
|
|
||
| ARG TARGETARCH | ||
| ARG HELM_VERSION | ||
| RUN wget -O helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://github.com/fluid-cloudnative/helm/releases/download/${HELM_VERSION}/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \ | ||
| tar -xvf helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \ | ||
| mv linux-${TARGETARCH}/helm /usr/local/bin/ddc-helm && \ | ||
| chmod u+x /usr/local/bin/ddc-helm && \ | ||
| rm -f helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \ | ||
| rm -rf linux-${TARGETARCH} | ||
| COPY --from=builder /go/src/github.com/fluid-cloudnative/fluid/bin/helm/${HELM_VERSION}/helm-linux-${TARGETARCH} /usr/local/bin/ddc-helm | ||
|
Contributor
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. This change makes the Docker build dependent on the Helm binary being present in the local |
||
| RUN chmod u+x /usr/local/bin/ddc-helm | ||
|
|
||
| COPY --from=builder /go/src/github.com/fluid-cloudnative/fluid/charts/ /charts | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Alpine version
3.23.3is invalid as Alpine Linux has not released a version 3.23 (the current latest stable is 3.21). This will cause the image build to fail during the base image pull. Based on the SHA provided, it is highly likely that3.21.3was intended.