diff options
Diffstat (limited to 'docker/Makefile')
| -rw-r--r-- | docker/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docker/Makefile b/docker/Makefile index 793ef17de..8c2e4d371 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -8,11 +8,17 @@ cgo ?= 0 binary: export SWCOMMIT=$(shell git rev-parse --short HEAD) export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)" - cd ../weed; CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)"; mv weed ../docker/ + cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)" && mv weed ../docker/ + +binary_race: options = -race +binary_race: cgo = 1 +binary_race: binary build: binary docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local . - rm ./weed + +build_e2e: binary_race + docker build --no-cache -t chrislusf/seaweedfs:e2e -f Dockerfile.e2e . go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,5BytesOffset docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build . @@ -29,9 +35,7 @@ s3tests_build: dev: build docker-compose -f compose/local-dev-compose.yml -p seaweedfs up -dev_race: options = -race -dev_race: cgo = 1 -dev_race: build +dev_race: binary_race docker-compose -f compose/local-dev-compose.yml -p seaweedfs up dev_tls: build certstrap |
