diff options
| author | Patrick Schmidt <patrick.schmidt@innogames.com> | 2022-08-31 18:27:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-31 09:27:53 -0700 |
| commit | a73e177ecff78aee1c59b3b57a296b10a778bc9e (patch) | |
| tree | 6d733b44cb9a059c6470ebb318595fc90dd5a9d8 /docker/Makefile | |
| parent | 4a4ef3cc3c24d0c86defe82445448a567316cc36 (diff) | |
| download | seaweedfs-a73e177ecff78aee1c59b3b57a296b10a778bc9e.tar.xz seaweedfs-a73e177ecff78aee1c59b3b57a296b10a778bc9e.zip | |
Add an End-to-End workflow for FUSE mount (#3562)
* Add an e2e workflow to test FUSE mount
* Fix deadlocks during concurrent r/w
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 |
