Skip to content

Commit

Permalink
interop: publish Docker images for linux/amd64 and linux/arm64 (#3748)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Mar 30, 2023
1 parent 56a6d8d commit c9ae152
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-interop-docker.yml
Expand Up @@ -12,6 +12,8 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -20,5 +22,6 @@ jobs:
- uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:interop"
platforms: linux/amd64,linux/arm64
push: true
tags: martenseemann/quic-go-interop:latest
13 changes: 10 additions & 3 deletions interop/Dockerfile
@@ -1,10 +1,17 @@
FROM martenseemann/quic-network-simulator-endpoint:latest AS builder

ARG TARGETPLATFORM
RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"

RUN apt-get update && apt-get install -y wget tar git

RUN wget https://dl.google.com/go/go1.20.linux-amd64.tar.gz && \
tar xfz go1.20.linux-amd64.tar.gz && \
rm go1.20.linux-amd64.tar.gz
ENV GOVERSION=1.20.2

RUN platform=$(echo ${TARGETPLATFORM} | tr '/' '-') && \
filename="go${GOVERSION}.${platform}.tar.gz" && \
wget https://dl.google.com/go/${filename} && \
tar xfz ${filename} && \
rm ${filename}

ENV PATH="/go/bin:${PATH}"

Expand Down

0 comments on commit c9ae152

Please sign in to comment.