Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Add arm64 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScheererJ committed Sep 2, 2022
1 parent 2966521 commit 556468d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ portmap-copier:
oci-builder: docker-buildx
platforms:
- linux/amd64
- linux/arm64
dockerimages:
portmap-copier:
inputs:
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

############# portmap-builder
FROM alpine:3.16.2 AS portmap-builder
ARG TARGETARCH

RUN apk update \
&& apk add curl \
&& mkdir /cni \
&& mkdir /cni/bin \
&& mkdir /cni/lib \
&& cp /bin/cp /cni/bin/ \
&& cp /lib/ld-musl-x86_64.so.1 /cni/lib/ \
&& cp /lib/libc.musl-x86_64.so.1 /cni/lib \
&& curl -s -S -f -L --retry 10 https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-amd64-v1.1.1.tgz | tar -xz -C /cni/bin ./portmap
&& cp /lib/ld-musl-* /cni/lib/ \
&& cp /lib/libc.musl-* /cni/lib \
&& curl -s -S -f -L --retry 10 https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-${TARGETARCH}-v1.1.1.tgz | tar -xz -C /cni/bin ./portmap

############# portmap-copier
FROM gcr.io/distroless/static-debian11:nonroot AS portmap-copier
Expand Down

0 comments on commit 556468d

Please sign in to comment.