Merge pull request #78 from tomwilkie/74-static-link

Make the docker image built on circle runnable
This commit is contained in:
Tom Wilkie
2015-05-21 18:02:35 +01:00
2 changed files with 3 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ $(PROBE_EXE): probe/*.go report/*.go xfer/*.go
$(APP_EXE) $(PROBE_EXE):
go get -tags netgo ./$(@D)
go build -o $@ ./$(@D)
go build -ldflags "-extldflags \"-static\"" -tags netgo -o $@ ./$(@D)
static: client/dist/scripts/bundle.js
esc -o app/static.go -prefix client/dist client/dist

View File

@@ -24,6 +24,8 @@ dependencies:
mv scope_ui_build.tar $(dirname "$SCOPE_UI_BUILD");
fi
post:
- go clean -i net
- go install -tags netgo std
- go get github.com/golang/lint/golint
- go get github.com/fzipp/gocyclo
- go get github.com/mattn/goveralls