Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. .PHONY: test
  2. BINARY = weed
  3. SOURCE_DIR = .
  4. debug ?= 0
  5. all: install
  6. install:
  7. cd weed; go install
  8. warp_install:
  9. go install github.com/minio/warp@v0.7.6
  10. full_install:
  11. cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
  12. server: install
  13. weed -v 0 server -s3 -filer -filer.maxMB=64 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=./docker/compose/s3.json -metricsPort=9324
  14. benchmark: install warp_install
  15. pkill weed || true
  16. pkill warp || true
  17. weed server -debug=$(debug) -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json &
  18. warp client &
  19. while ! nc -z localhost 8000 ; do sleep 1 ; done
  20. warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
  21. pkill warp
  22. pkill weed
  23. # curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
  24. benchmark_with_pprof: debug = 1
  25. benchmark_with_pprof: benchmark
  26. test:
  27. cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...