-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since Helm does not provide riscv64 binaries yet, we use a separate Dockerfile that builds from source. The entry script has also been modified to function without Helm v2. Signed-off-by: Antony Chazapis <[email protected]>
- Loading branch information
Showing
5 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM riscv64/alpine:edge as extract | ||
RUN apk add -U curl ca-certificates | ||
# ARG ARCH | ||
# RUN curl https://get.helm.sh/helm-v3.11.3-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin | ||
# RUN mv /usr/bin/helm /usr/bin/helm_v3 | ||
RUN apk add -U bash build-base go | ||
RUN mkdir -p /go/src/github.com/helm/helm && \ | ||
curl -sL https://github.com/helm/helm/archive/refs/tags/v3.12.2.tar.gz | tar xvzf - --strip-components=1 -C /go/src/github.com/helm/helm && \ | ||
make -C /go/src/github.com/helm/helm && \ | ||
cp -v /go/src/github.com/helm/helm/bin/helm /usr/bin/helm_v3 | ||
COPY entry /usr/bin/ | ||
|
||
FROM riscv64/alpine:edge as plugins | ||
RUN apk add -U curl ca-certificates build-base go | ||
COPY --from=extract /usr/bin/helm_v3 /usr/bin/helm | ||
RUN mkdir -p /go/src/github.com/k3s-io/helm-set-status && \ | ||
curl -sL https://github.com/k3s-io/helm-set-status/archive/refs/tags/v0.1.3.tar.gz | tar xvzf - --strip-components=1 -C /go/src/github.com/k3s-io/helm-set-status && \ | ||
make -C /go/src/github.com/k3s-io/helm-set-status install | ||
RUN mkdir -p /go/src/github.com/helm/helm-mapkubeapis && \ | ||
curl -sL https://github.com/helm/helm-mapkubeapis/archive/refs/tags/v0.4.1.tar.gz | tar xvzf - --strip-components=1 -C /go/src/github.com/helm/helm-mapkubeapis && \ | ||
make -C /go/src/github.com/helm/helm-mapkubeapis && \ | ||
mkdir -p /root/.local/share/helm/plugins/helm-mapkubeapis && \ | ||
cp -vr /go/src/github.com/helm/helm-mapkubeapis/plugin.yaml \ | ||
/go/src/github.com/helm/helm-mapkubeapis/bin \ | ||
/go/src/github.com/helm/helm-mapkubeapis/config \ | ||
/root/.local/share/helm/plugins/helm-mapkubeapis/ | ||
|
||
FROM riscv64/alpine:edge | ||
ARG BUILDDATE | ||
LABEL buildDate=$BUILDDATE | ||
RUN apk --no-cache upgrade && \ | ||
apk add -U --no-cache ca-certificates jq bash git && \ | ||
adduser -D -u 1000 -s /bin/bash klipper-helm | ||
WORKDIR /home/klipper-helm | ||
COPY --chown=1000:1000 --from=plugins /root/.local/share/helm/plugins/ /home/klipper-helm/.local/share/helm/plugins/ | ||
COPY --from=extract /usr/bin/helm_v3 /usr/bin/entry /usr/bin/ | ||
ENTRYPOINT ["entry"] | ||
ENV STABLE_REPO_URL=https://charts.helm.sh/stable/ | ||
ENV TIMEOUT= | ||
USER 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters