File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ status:
3333
3434
3535builder : status
36+ # alpine image libmusl is not compatible with golang race detector
37+ # also alpine libmusl is required for building static binaries to avoid glibc getaddrinfo panic
3638 docker build \
3739 --tag $(BUILDER ) :$(VERSION ) \
3840 --tag $(BUILDER ) :latest \
39- --build-arg BUILD_ARG=use_all_cores \
41+ --build-arg BUILD_ARG=release \
4042 -f docker/builder.Dockerfile \
4143 .
4244
@@ -183,6 +185,11 @@ client: bin/cql bin/cql.test bin/cql-fuse bin/cql-mysql-adapter bin/cql-faucet
183185
184186all : bp miner client
185187
188+ build-release : bin/cqld bin/cql-minerd bin/cql bin/cql-fuse bin/cql-mysql-adapter bin/cql-faucet
189+
190+ release :
191+ make -j$(JOBS ) build-release
192+
186193clean :
187194 rm -rf bin/cql*
188195 rm -f * .cover.out
Original file line number Diff line number Diff line change 11# Stage: all runner
2- FROM frolvlad/ alpine-glibc:latest
2+ FROM alpine:3.9
33
44ARG COMMIT
55ARG VERSION
Original file line number Diff line number Diff line change 11# Stage: builder
2- FROM golang:1.11-stretch as builder
2+ FROM golang:1.11-alpine3.9 as builder
33
44ARG BUILD_ARG
55
66WORKDIR /go/src/github.com/CovenantSQL/CovenantSQL
77COPY . .
8+ RUN apk --no-cache add build-base make git
89RUN make clean
910RUN GOOS=linux GOLDFLAGS="-linkmode external -extldflags -static" make ${BUILD_ARG}
10- RUN rm -f bin/*.test
1111
You can’t perform that action at this time.
0 commit comments