Set GOARM separately for each architecture. Add changelog entries.

This commit is contained in:
Pablo Carranza Velez 2016-01-19 14:14:02 -03:00
parent 0125e86a6b
commit b17bd5bc27
3 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
* Set GOARM separately for each architecture [Pablo]
* Add armv5 (armel) build [Trong]
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth]
# v1.3.2

View File

@ -18,12 +18,15 @@ MIXPANEL_TOKEN = bananasbananas
ifeq ($(ARCH),rpi)
GOARCH = arm
GOARM = 6
endif
ifeq ($(ARCH),armv7hf)
GOARCH = arm
GOARM = 7
endif
ifeq ($(ARCH),armel)
GOARCH = arm
GOARM = 5
endif
ifeq ($(ARCH),i386)
GOARCH = 386
@ -80,7 +83,7 @@ go-builder:
gosuper: go-builder
-mkdir -p bin
-docker rm --volumes -f resin_build_gosuper_$(JOB_NAME) || true
docker run --name resin_build_gosuper_$(JOB_NAME) -v $(shell pwd)/gosuper/bin:/usr/src/app/bin -e USER_ID=$(shell id -u) -e GROUP_ID=$(shell id -g) -e GOARCH=$(GOARCH) resin/go-supervisor-builder:$(SUPERVISOR_VERSION)
docker run --name resin_build_gosuper_$(JOB_NAME) -v $(shell pwd)/gosuper/bin:/usr/src/app/bin -e USER_ID=$(shell id -u) -e GROUP_ID=$(shell id -g) -e GOARCH=$(GOARCH) -e GOARM=$(GOARM) resin/go-supervisor-builder:$(SUPERVISOR_VERSION)
docker rm --volumes -f resin_build_gosuper_$(JOB_NAME)
mv gosuper/bin/linux_$(GOARCH)/gosuper bin/gosuper

View File

@ -2,8 +2,6 @@ FROM golang:1.5.1
ENV GOOS linux
ENV GOPATH /usr/src/app
# Set an explicit GOARM of 5 for maximum compatibility
ENV GOARM 5
WORKDIR /usr/src/app