blob: f06879f9e599dfedb18953dacd988d4887bb787d [file] [log] [blame]
gunjan56e19d272016-07-07 14:23:26 -07001
2default: image
3
4ansible:
5 ansible-playbook ./setup.yml -v -vvvv -u gunjan -i ./host.yml --ask-pass
6
7get:
8 goimports -w .
9 go get -t -d -v ./...
10
11src:
12 docker run --rm -it -v "$GOPATH":/gopath -v "$(pwd)":/app -e "GOPATH=/gopath" -w /app golang:1.6.1 sh -c 'CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o app'
13
14fmt:
15 gofmt -w .
16 #TODO: go lint, go vet
17test:
18 go test -v -race ./...
19 go test -cover -v ./...
20
21image:
gunjan5d6ca1772016-07-20 18:11:04 -070022 docker build -t config-gen .
gunjan56e19d272016-07-07 14:23:26 -070023
24run:
gunjan5d6ca1772016-07-20 18:11:04 -070025 docker run --rm -p 1337:1337 -it config-gen
gunjan56e19d272016-07-07 14:23:26 -070026
27build:
28 GOOS=linux GOARCH=amd64 go build -o app
29
30depsave:
31 godep save
32
33depupdate:
34 go get -t -v ./...
35 godep update