Skip to content

Commit

Permalink
More architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Oct 7, 2019
1 parent 531e45b commit d098a41
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Dockerfile.linux-ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG GO_VERSION
FROM golang:$GO_VERSION
RUN \
apt-get update && \
apt-get install -y gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu

ENV CGO_ENABLED=1
ENV CC=powerpc64le-linux-gnu-gcc
ENV CXX=powerpc64le-linux-gnu-g++
ENV GOOS=linux
ENV GOARCH=ppc64le

12 changes: 12 additions & 0 deletions Dockerfile.linux-s390x
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG GO_VERSION
FROM golang:$GO_VERSION
RUN \
apt-get update && \
apt-get install -y gcc-s390x-linux-gnu g++-s390x-linux-gnu

ENV CGO_ENABLED=1
ENV CC=s390x-linux-gnu-gcc
ENV CXX=s390x-linux-gnu-g++
ENV GOOS=linux
ENV GOARCH=s390x

16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,17 @@ build-linux-arm64:
push-linux-arm64:
docker push ${PROJECT}:${GO_VERSION}-linux-arm64

build: build-linux-amd64 build-linux-arm-7 build-linux-arm64 build-linux-386 build-windows-amd64 build-windows-386
push: push-linux-amd64 push-linux-arm-7 push-linux-arm64 push-linux-386 push-windows-amd64 push-windows-386
build-linux-ppc64le:
docker build --build-arg GO_VERSION=${GO_VERSION} -t ${PROJECT}:${GO_VERSION}-linux-ppc64le -f Dockerfile.linux-ppc64le .

push-linux-ppc64le:
docker push ${PROJECT}:${GO_VERSION}-linux-ppc64le

build-linux-s390x:
docker build --build-arg GO_VERSION=${GO_VERSION} -t ${PROJECT}:${GO_VERSION}-linux-s390x -f Dockerfile.linux-s390x .

push-linux-s390x:
docker push ${PROJECT}:${GO_VERSION}-linux-s390x

build: build-linux-amd64 build-linux-arm-7 build-linux-arm64 build-linux-386 build-windows-amd64 build-windows-386 build-linux-ppc64le build-linux-s390x
push: push-linux-amd64 push-linux-arm-7 push-linux-arm64 push-linux-386 push-windows-amd64 push-windows-386 push-linux-ppc64le push-linux-s390x

0 comments on commit d098a41

Please sign in to comment.