Skip to content

Commit

Permalink
Merge pull request #139 from NikitaSkrynnik/spire
Browse files Browse the repository at this point in the history
Update Spire version and make Dockerfile support multi-arch build
  • Loading branch information
denis-tingaikin authored Dec 7, 2023
2 parents 6dae920 + 0f46085 commit 7c51c5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ ENV PATH ${PATH}:/go/bin
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOBIN=/bin
ARG BUILDARCH=amd64
RUN rm -r /etc/vpp
RUN go install github.com/go-delve/delve/cmd/[email protected]
ADD https://github.com/spiffe/spire/releases/download/v1.2.2/spire-1.2.2-linux-x86_64-glibc.tar.gz .
ADD https://github.com/coredns/coredns/releases/download/v1.9.1/coredns_1.9.1_linux_amd64.tgz .
RUN tar xzvf spire-1.2.2-linux-x86_64-glibc.tar.gz -C /bin --strip=2 spire-1.2.2/bin/spire-server spire-1.2.2/bin/spire-agent
RUN tar xzvf coredns_1.9.1_linux_amd64.tgz -C /bin coredns
ADD https://github.com/spiffe/spire/releases/download/v1.8.0/spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz .
ADD https://github.com/coredns/coredns/releases/download/v1.9.1/coredns_1.9.1_linux_${BUILDARCH}.tgz .
RUN tar xzvf spire-1.8.0-linux-${BUILDARCH}-musl.tar.gz -C /bin --strip=2 spire-1.8.0/bin/spire-server spire-1.8.0/bin/spire-agent
RUN tar xzvf coredns_1.9.1_linux_${BUILDARCH}.tgz -C /bin coredns

FROM go as build
WORKDIR /build
Expand Down

0 comments on commit 7c51c5c

Please sign in to comment.