Skip to content

Commit

Permalink
bump alpine image version
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Glenn Hansen <[email protected]>
  • Loading branch information
travisghansen committed Mar 2, 2024
1 parent 86cbfe5 commit 1c01be9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.5.4

Released 2024-03-03

- bump alpine image for containers

# v0.5.3

Released 2022-06-01
Expand Down
24 changes: 12 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# docker build --pull -t foobar --build-arg TARGETPLATFORM="linux/amd64" .
# docker run --rm -ti foobar

FROM alpine:3.15 as builder
FROM alpine:3.19 as builder

# https://github.com/BretFisher/multi-platform-docker-build
ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETVARIANT
RUN printf "I'm building for TARGETPLATFORM=${TARGETPLATFORM}" \
&& printf ", TARGETARCH=${TARGETARCH}" \
&& printf ", TARGETVARIANT=${TARGETVARIANT} \n" \
&& printf "With uname -s : " && uname -s \
&& printf "and uname -m : " && uname -mm
&& printf ", TARGETARCH=${TARGETARCH}" \
&& printf ", TARGETVARIANT=${TARGETVARIANT} \n" \
&& printf "With uname -s : " && uname -s \
&& printf "and uname -m : " && uname -mm

RUN mkdir -p /binary; mkdir -p /builds;

Expand All @@ -22,18 +22,18 @@ RUN ls -l /builds

# linux/amd64,linux/arm64,linux/arm/v7,linux/s390x,linux/ppc64le
RUN case ${TARGETPLATFORM} in \
"linux/amd64") BINARY=csi-grpc-proxy-docker-image-build-linux-amd64 ;; \
"linux/arm64") BINARY=csi-grpc-proxy-docker-image-build-linux-arm64 ;; \
"linux/arm/v7") BINARY=csi-grpc-proxy-docker-image-build-linux-arm ;; \
"linux/ppc64le") BINARY=csi-grpc-proxy-docker-image-build-linux-ppc64le ;; \
"linux/s390x") BINARY=csi-grpc-proxy-docker-image-build-linux-s390x ;; \
esac \
"linux/amd64") BINARY=csi-grpc-proxy-docker-image-build-linux-amd64 ;; \
"linux/arm64") BINARY=csi-grpc-proxy-docker-image-build-linux-arm64 ;; \
"linux/arm/v7") BINARY=csi-grpc-proxy-docker-image-build-linux-arm ;; \
"linux/ppc64le") BINARY=csi-grpc-proxy-docker-image-build-linux-ppc64le ;; \
"linux/s390x") BINARY=csi-grpc-proxy-docker-image-build-linux-s390x ;; \
esac \
&& cp /builds/${BINARY} /binary/csi-grpc-proxy \
&& chmod +x /binary/csi-grpc-proxy

RUN ls -l /binary

FROM alpine:3.15
FROM alpine:3.19

LABEL org.opencontainers.image.source https://github.com/democratic-csi/csi-grpc-proxy

Expand Down

0 comments on commit 1c01be9

Please sign in to comment.