Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. BINARY = weed
  2. SOURCE_DIR = .
  3. debug ?= 0
  4. all: install
  5. install:
  6. cd weed; go install
  7. warp_install:
  8. go install github.com/minio/warp@v0.7.6
  9. full_install:
  10. cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
  11. server: install
  12. 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
  13. benchmark: install warp_install
  14. pkill weed || true
  15. pkill warp || true
  16. 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 &
  17. warp client &
  18. while ! nc -z localhost 8000 ; do sleep 1 ; done
  19. warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
  20. pkill warp
  21. pkill weed
  22. # curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
  23. benchmark_with_pprof: debug = 1
  24. benchmark_with_pprof: benchmark
  25. test:
  26. cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...