Skip to content

Commit 1e17945

Browse files
committed
Bump alpine, helm, and plugin versions
Signed-off-by: Brad Davidson <[email protected]>
1 parent 71677e0 commit 1e17945

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

Dockerfile.dapper

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
FROM golang:1.20-alpine3.17
1+
# need to stick with alpine 3.17 for docker 20.10 until the s390x runners are upgraded
2+
# ref: https://github.com/alpinelinux/docker-alpine/issues/182
3+
FROM alpine:3.17
24

35
ARG DAPPER_HOST_ARCH
46
ENV ARCH $DAPPER_HOST_ARCH
57

6-
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
7-
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \
8-
curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.52.2; \
9-
fi
10-
8+
RUN apk -U add bash docker-cli git
119
ENV DAPPER_ENV REPO TAG DRONE_TAG
1210
ENV DAPPER_SOURCE /go/src/github.com/k3s-io/klipper-helm/
1311
ENV DAPPER_OUTPUT ./bin ./dist

package/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ RUN apk add -U curl ca-certificates
33
ARG ARCH
44
RUN curl https://get.helm.sh/helm-v2.17.0-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
55
RUN mv /usr/bin/helm /usr/bin/helm_v2
6-
RUN curl https://get.helm.sh/helm-v3.11.3-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
6+
RUN curl https://get.helm.sh/helm-v3.12.3-linux-${ARCH}.tar.gz | tar xvzf - --strip-components=1 -C /usr/bin
77
RUN mv /usr/bin/helm /usr/bin/helm_v3
88
COPY entry /usr/bin/
99

10-
FROM golang:1.20-alpine3.17 as plugins
10+
FROM golang:1.20-alpine3.18 as plugins
1111
RUN apk add -U curl ca-certificates build-base binutils-gold
1212
ARG ARCH
1313
COPY --from=extract /usr/bin/helm_v3 /usr/bin/helm
1414
RUN mkdir -p /go/src/github.com/k3s-io/helm-set-status && \
15-
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 && \
15+
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 && \
1616
make -C /go/src/github.com/k3s-io/helm-set-status install
1717
RUN mkdir -p /go/src/github.com/helm/helm-mapkubeapis && \
18-
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 && \
18+
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 && \
1919
make -C /go/src/github.com/helm/helm-mapkubeapis && \
2020
mkdir -p /root/.local/share/helm/plugins/helm-mapkubeapis && \
2121
cp -vr /go/src/github.com/helm/helm-mapkubeapis/plugin.yaml \
@@ -27,7 +27,7 @@ FROM alpine:3.18
2727
ARG BUILDDATE
2828
LABEL buildDate=$BUILDDATE
2929
RUN apk --no-cache upgrade && \
30-
apk add -U --no-cache ca-certificates jq bash git && \
30+
apk add -U --no-cache ca-certificates jq bash && \
3131
adduser -D -u 1000 -s /bin/bash klipper-helm
3232
WORKDIR /home/klipper-helm
3333
COPY --chown=1000:1000 --from=plugins /root/.local/share/helm/plugins/ /home/klipper-helm/.local/share/helm/plugins/

scripts/build

-10
This file was deleted.

0 commit comments

Comments
 (0)