Added crosscompile variables for linux since it will be running in a
linux docker.
@@ -185,7 +185,7 @@ def _build(ts, name):
localhost_address = "docker.for.mac.localhost" if platform.system() == "Darwin" else "localhost"
with _tempdir() as tmp:
local("go install ./%s" % name)
- local("go build -o %s/%s ./%s" % (tmp, name, name))
+ local("env GOOS=linux GOARCH=amd64 go build -o %s/%s ./%s" % (tmp, name, name))
local("cp ./dockerfiles/dev/%s %s/Dockerfile" % (name, tmp))
local("sudo docker build -t %s:5000/%s:latest %s" % (localhost_address, name, tmp))
local("sudo docker tag %s:5000/%s:latest docker.for.mac.localhost:5000/%s:%s" % (localhost_address, name, name, ts))
