Docker image for ARM

This commit is contained in:
Johannes Würbach
2018-12-20 22:48:53 +01:00
committed by Leonard Gram
parent 96759e39a6
commit 702d449001
6 changed files with 96 additions and 39 deletions

View File

@ -8,6 +8,8 @@ set -e
EXTRA_OPTS="$@"
CCARMV7=arm-linux-gnueabihf-gcc
CCARM64=aarch64-linux-gnu-gcc
CCX64=/tmp/x86_64-centos6-linux-gnu/bin/x86_64-centos6-linux-gnu-gcc
GOPATH=/go
@ -26,6 +28,9 @@ fi
echo "Build arguments: $OPT"
go run build.go -goarch armv7 -cc ${CCARMV7} ${OPT} build
go run build.go -goarch arm64 -cc ${CCARM64} ${OPT} build
CC=${CCX64} go run build.go ${OPT} build
yarn install --pure-lockfile --no-progress
@ -44,3 +49,5 @@ source /etc/profile.d/rvm.sh
echo "Packaging"
go run build.go -goos linux -pkg-arch amd64 ${OPT} package-only latest
go run build.go -goos linux -pkg-arch armv7 ${OPT} package-only latest
go run build.go -goos linux -pkg-arch arm64 ${OPT} package-only latest