mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-23 03:52:48 +02:00
* init version * relocate * add s3 bucket link * refactor handlers into weed/admin folder * fix login logout * adding favicon * remove fall back to http get topology * grpc dial option, disk total capacity * show filer count * fix each volume disk usage * add filers to dashboard * adding hosts, volumes, collections * refactor code and menu * remove "refresh" button * fix data for collections * rename cluster hosts into volume servers * add masters, filers * reorder * adding file browser * create folder and upload files * add filer version, created at time * remove mock data * remove fields * fix submenu item highlighting * fix bucket creation * purge files * delete multiple * fix bucket creation * remove region from buckets * add object store with buckets and users * rendering permission * refactor * get bucket objects and size * link to file browser * add file size and count for collections page * paginate the volumes * fix possible SSRF https://github.com/seaweedfs/seaweedfs/pull/6928/checks?check_run_id=45108469801 * Update weed/command/admin.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update weed/command/admin.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix build * import * remove filer CLI option * remove filer option * remove CLI options --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
.PHONY: test admin-generate admin-build admin-clean admin-dev admin-run admin-test admin-fmt admin-help
|
|
|
|
BINARY = weed
|
|
ADMIN_DIR = weed/admin
|
|
|
|
SOURCE_DIR = .
|
|
debug ?= 0
|
|
|
|
all: install
|
|
|
|
install: admin-generate
|
|
cd weed; go install
|
|
|
|
warp_install:
|
|
go install github.com/minio/warp@v0.7.6
|
|
|
|
full_install: admin-generate
|
|
cd weed; go install -tags "elastic gocdk sqlite ydb tarantool tikv rclone"
|
|
|
|
server: install
|
|
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
|
|
|
|
benchmark: install warp_install
|
|
pkill weed || true
|
|
pkill warp || true
|
|
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 &
|
|
warp client &
|
|
while ! nc -z localhost 8000 ; do sleep 1 ; done
|
|
warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
|
|
pkill warp
|
|
pkill weed
|
|
|
|
# curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
|
|
benchmark_with_pprof: debug = 1
|
|
benchmark_with_pprof: benchmark
|
|
|
|
test: admin-generate
|
|
cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./...
|
|
|
|
# Admin component targets
|
|
admin-generate:
|
|
@echo "Generating admin component templates..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) generate
|
|
|
|
admin-build: admin-generate
|
|
@echo "Building admin component..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) build
|
|
|
|
admin-clean:
|
|
@echo "Cleaning admin component..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) clean
|
|
|
|
admin-dev:
|
|
@echo "Starting admin development server..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) dev
|
|
|
|
admin-run:
|
|
@echo "Running admin server..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) run
|
|
|
|
admin-test:
|
|
@echo "Testing admin component..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) test
|
|
|
|
admin-fmt:
|
|
@echo "Formatting admin component..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) fmt
|
|
|
|
admin-help:
|
|
@echo "Admin component help..."
|
|
@cd $(ADMIN_DIR) && $(MAKE) help
|