Add s390x support
A symlink to s390x-linux-gnu-gcc is required since go expects this name instead of gcc
@@ -9,7 +9,11 @@ RUN zypper -n install gcc ca-certificates git wget curl vim less file python3-to
rm -f /bin/sh && ln -s /bin/bash /bin/sh && \
rm -rf /var/cache/zypp/*
-ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm64=arm64 GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
+RUN if [ ${ARCH} == "s390x" ]; then \
+ ln -s /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc;\
+ fi
+
+ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm64=arm64 GOLANG_ARCH_s390x=s390x GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash
RUN wget -O - https://storage.googleapis.com/golang/go1.14.15.linux-${!GOLANG_ARCH}.tar.gz | tar -xzf - -C /usr/local && \
