diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-08-26 13:28:03 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-26 01:28:03 -0700 |
| commit | 913a5d0dd475e029f08d7e60f383bc9304a872dc (patch) | |
| tree | c282f0a6aea7f1bdc27210179461f4e52e57ad19 /docker | |
| parent | 6f483a4d36c77d986d1163a4132d2e117c1e2f01 (diff) | |
| download | seaweedfs-913a5d0dd475e029f08d7e60f383bc9304a872dc.tar.xz seaweedfs-913a5d0dd475e029f08d7e60f383bc9304a872dc.zip | |
add target dev_race to MakeFile (#3522)
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/Makefile b/docker/Makefile index b262c4178..793ef17de 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -4,10 +4,11 @@ all: gen gen: dev +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=0 GOOS=linux go build -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/ build: binary docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local . @@ -28,6 +29,11 @@ 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 + docker-compose -f compose/local-dev-compose.yml -p seaweedfs up + dev_tls: build certstrap ENV_FILE="tls.env" docker-compose -f compose/local-dev-compose.yml -p seaweedfs up |
