File tree Expand file tree Collapse file tree 3 files changed +643
-6
lines changed Expand file tree Collapse file tree 3 files changed +643
-6
lines changed Original file line number Diff line number Diff line change 15
15
govendor sync
16
16
go install -v github.com/cesanta/docker_auth/auth_server/vendor/github.com/jteeuwen/go-bindata/go-bindata
17
17
18
+ generate :
19
+ go generate \
20
+ github.com/cesanta/docker_auth/auth_server \
21
+ github.com/cesanta/docker_auth/auth_server/authn/... \
22
+ github.com/cesanta/docker_auth/auth_server/authz/... \
23
+ github.com/cesanta/docker_auth/auth_server/mgo_session/... \
24
+ github.com/cesanta/docker_auth/auth_server/server/...
25
+
18
26
build :
19
- go generate ./...
20
27
CGO_ENABLED=0 go build -v -i --ldflags=--s
21
28
22
29
ca-certificates.crt :
@@ -25,12 +32,12 @@ ca-certificates.crt:
25
32
build-release : ca-certificates.crt
26
33
docker run --rm -v $(PWD ) /..:/go/src/github.com/cesanta/docker_auth \
27
34
$(BUILDER_IMAGE ) sh -x -c " \
28
- apk update && apk add git py2-pip && pip install GitPython && \
35
+ apk update && apk add git make py2-pip && pip install GitPython && \
29
36
cd /go/src/github.com/cesanta/docker_auth/auth_server && \
30
37
go get -v -u github.com/kardianos/govendor && \
31
38
umask 0 && govendor sync -v && \
32
39
go install -v github.com/cesanta/docker_auth/auth_server/vendor/github.com/jteeuwen/go-bindata/go-bindata && \
33
- go generate ./... && \
40
+ make generate && \
34
41
go build -v"
35
42
@echo === Built version $(VERSION ) ===
36
43
@@ -40,7 +47,7 @@ auth_server:
40
47
@echo
41
48
@exit 1
42
49
43
- docker-build : build
50
+ docker-build :
44
51
docker build -t $(IMAGE ) :latest .
45
52
docker tag $(IMAGE ) :latest $(IMAGE ) :$(VERSION )
46
53
You can’t perform that action at this time.
0 commit comments