You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

  1. BINARY = weed
  2. SOURCE_DIR = .
  3. debug ?= 0
  4. all: install
  5. install:
  6. cd weed; go install -tags "sqlite"
  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. export WEED_LEVELDB2_ENABLED="false";export WEED_SQLITE_ENABLED="true"; export WEED_SQLITE_DBFILE="/tmp/filer.db"; \
  13. weed -v 0 server -s3.allowListRecursive=true -dir /tmp -master.volumeSizeLimitMB=1024 -s3 -filer -filer.maxMB=64 -filer.port.public=7777 -volume.max=100 -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 ./...