2020-02-26 05:56:15 +00:00
|
|
|
all: gen
|
|
|
|
|
|
|
|
.PHONY : gen
|
|
|
|
|
2020-02-27 00:46:29 +00:00
|
|
|
gen: dev
|
|
|
|
|
2021-03-12 10:54:08 +00:00
|
|
|
binary:
|
2021-05-01 07:20:11 +00:00
|
|
|
export SWCOMMIT=$(shell git rev-parse --short HEAD)
|
2022-07-29 07:17:28 +00:00
|
|
|
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"
|
2022-05-14 13:40:32 +00:00
|
|
|
cd ../weed; CGO_ENABLED=0 GOOS=linux go build -tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)"; mv weed ../docker/
|
2021-03-12 10:54:08 +00:00
|
|
|
|
|
|
|
build: binary
|
2020-03-02 02:23:07 +00:00
|
|
|
docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .
|
2020-02-27 00:46:29 +00:00
|
|
|
rm ./weed
|
|
|
|
|
2022-05-16 07:58:11 +00:00
|
|
|
go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,5BytesOffset
|
2022-05-14 13:40:32 +00:00
|
|
|
docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build .
|
|
|
|
|
|
|
|
go_build_large_disk:
|
|
|
|
docker build --build-arg TAGS=large_disk --no-cache -t chrislusf/seaweedfs:large_disk -f Dockerfile.go_build .
|
|
|
|
|
2021-10-01 04:10:23 +00:00
|
|
|
build_rocksdb:
|
|
|
|
docker build --no-cache -t chrislusf/seaweedfs:rocksdb -f Dockerfile.rocksdb_large .
|
|
|
|
|
2021-02-17 23:03:42 +00:00
|
|
|
s3tests_build:
|
|
|
|
docker build --no-cache -t chrislusf/ceph-s3-tests:local -f Dockerfile.s3tests .
|
|
|
|
|
2020-02-27 00:46:29 +00:00
|
|
|
dev: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-dev-compose.yml -p seaweedfs up
|
2020-02-27 00:46:29 +00:00
|
|
|
|
2021-03-08 16:39:44 +00:00
|
|
|
dev_tls: build certstrap
|
|
|
|
ENV_FILE="tls.env" docker-compose -f compose/local-dev-compose.yml -p seaweedfs up
|
|
|
|
|
2021-01-23 06:47:23 +00:00
|
|
|
dev_mount: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-mount-compose.yml -p seaweedfs up
|
2021-01-23 06:47:23 +00:00
|
|
|
|
2021-07-03 19:52:58 +00:00
|
|
|
run_image: build
|
|
|
|
docker run --rm -ti --device /dev/fuse --cap-add SYS_ADMIN --entrypoint /bin/sh chrislusf/seaweedfs:local
|
|
|
|
|
2021-03-12 10:54:08 +00:00
|
|
|
profile_mount: build
|
|
|
|
docker-compose -f compose/local-mount-profile-compose.yml -p seaweedfs up
|
|
|
|
|
2020-12-21 15:58:41 +00:00
|
|
|
k8s: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-k8s-compose.yml -p seaweedfs up
|
2020-12-21 15:58:41 +00:00
|
|
|
|
2020-11-11 10:02:30 +00:00
|
|
|
dev_registry: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-registry-compose.yml -p seaweedfs up
|
2020-11-11 10:02:30 +00:00
|
|
|
|
2021-01-26 17:50:25 +00:00
|
|
|
dev_replicate: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-replicate-compose.yml -p seaweedfs up
|
2021-01-26 17:50:25 +00:00
|
|
|
|
2021-12-10 14:40:32 +00:00
|
|
|
dev_auditlog: build
|
|
|
|
docker-compose -f compose/local-auditlog-compose.yml -p seaweedfs up
|
|
|
|
|
2022-05-23 13:53:35 +00:00
|
|
|
dev_nextcloud: build
|
|
|
|
docker-compose -f compose/local-nextcloud-compose.yml -p seaweedfs up
|
|
|
|
|
2020-02-27 00:46:29 +00:00
|
|
|
cluster: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-cluster-compose.yml -p seaweedfs up
|
2020-02-27 00:46:29 +00:00
|
|
|
|
2021-01-24 08:00:42 +00:00
|
|
|
2clusters: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker-compose -f compose/local-clusters-compose.yml -p seaweedfs up
|
2021-01-24 08:00:42 +00:00
|
|
|
|
2022-05-06 10:53:36 +00:00
|
|
|
2mount: build
|
|
|
|
docker-compose -f compose/local-sync-mount-compose.yml -p seaweedfs up
|
|
|
|
|
2022-04-04 12:51:51 +00:00
|
|
|
hashicorp_raft: build
|
|
|
|
docker-compose -f compose/local-hashicorp-raft-compose.yml -p seaweedfs up
|
|
|
|
|
2021-02-17 23:03:42 +00:00
|
|
|
s3tests: build s3tests_build
|
|
|
|
docker-compose -f compose/local-s3tests-compose.yml -p seaweedfs up
|
|
|
|
|
2021-01-30 21:38:44 +00:00
|
|
|
filer_etcd: build
|
2021-02-03 21:09:28 +00:00
|
|
|
docker stack deploy -c compose/swarm-etcd.yml fs
|
2021-01-30 21:38:44 +00:00
|
|
|
|
2022-05-06 08:50:34 +00:00
|
|
|
test_etcd: build
|
|
|
|
docker-compose -f compose/test-etcd-filer.yml -p seaweedfs up
|
|
|
|
|
2022-05-12 07:23:02 +00:00
|
|
|
test_ydb: tags = ydb
|
|
|
|
test_ydb: build
|
|
|
|
export
|
|
|
|
docker-compose -f compose/test-ydb-filer.yml -p seaweedfs up
|
|
|
|
|
2020-02-27 00:46:29 +00:00
|
|
|
clean:
|
2020-02-26 05:56:15 +00:00
|
|
|
rm ./weed
|
2021-03-08 16:39:44 +00:00
|
|
|
|
|
|
|
certstrap:
|
|
|
|
go get github.com/square/certstrap
|
|
|
|
certstrap --depot-path compose/tls init --passphrase "" --common-name "SeaweedFS CA" || true
|
2021-03-10 09:02:13 +00:00
|
|
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name volume01.dev || true
|
|
|
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name master01.dev || true
|
|
|
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name filer01.dev || true
|
|
|
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name client01.dev || true
|
|
|
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01.dev || true
|
|
|
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01.dev || true
|
|
|
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01.dev || true
|
2022-05-06 08:50:34 +00:00
|
|
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" client01.dev || true
|