Skip to content

Commit

Permalink
Bump helm version and bump plugin deps when building
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Jul 24, 2024
1 parent 4461ac6 commit bbf9df2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@ RUN apk add -U curl ca-certificates
ARG ARCH
RUN curl -sL https://get.helm.sh/helm-v2.17.0-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
RUN mv /usr/bin/helm /usr/bin/helm_v2
RUN curl -sL https://get.helm.sh/helm-v3.15.0-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
RUN curl -sL https://get.helm.sh/helm-v3.15.3-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
RUN mv /usr/bin/helm /usr/bin/helm_v3
COPY entry /usr/bin/

FROM golang:1.22-alpine3.19 as plugins
FROM golang:1.22-alpine3.20 as plugins
RUN apk add -U curl ca-certificates build-base binutils-gold
ARG ARCH
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.2.0.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
cd /go/src/github.com/k3s-io/helm-set-status && \
go get -u ./... && \
go mod tidy && \
make install
RUN mkdir -p /go/src/github.com/helm/helm-mapkubeapis && \
curl -sL https://github.com/k3s-io/helm-mapkubeapis/archive/refs/tags/v0.4.1-k3s1.tar.gz | tar xvzf - --strip-components=1 -C /go/src/github.com/helm/helm-mapkubeapis && \
make -C /go/src/github.com/helm/helm-mapkubeapis && \
cd /go/src/github.com/helm/helm-mapkubeapis && \
go get -u ./... && \
go mod tidy && \
make && \
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 \
Expand Down

0 comments on commit bbf9df2

Please sign in to comment.