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.

57 lines
2.0 KiB

4 years ago
4 years ago
  1. all: gen
  2. .PHONY : gen
  3. gen: dev
  4. build:
  5. cd ../weed; CGO_ENABLED=0 GOOS=linux go build -ldflags "-extldflags -static"; mv weed ../docker/
  6. docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .
  7. rm ./weed
  8. s3tests_build:
  9. docker build --no-cache -t chrislusf/ceph-s3-tests:local -f Dockerfile.s3tests .
  10. dev: build
  11. docker-compose -f compose/local-dev-compose.yml -p seaweedfs up
  12. dev_tls: build certstrap
  13. ENV_FILE="tls.env" docker-compose -f compose/local-dev-compose.yml -p seaweedfs up
  14. dev_mount: build
  15. docker-compose -f compose/local-mount-compose.yml -p seaweedfs up
  16. k8s: build
  17. docker-compose -f compose/local-k8s-compose.yml -p seaweedfs up
  18. dev_registry: build
  19. docker-compose -f compose/local-registry-compose.yml -p seaweedfs up
  20. dev_replicate: build
  21. docker-compose -f compose/local-replicate-compose.yml -p seaweedfs up
  22. cluster: build
  23. docker-compose -f compose/local-cluster-compose.yml -p seaweedfs up
  24. 2clusters: build
  25. docker-compose -f compose/local-clusters-compose.yml -p seaweedfs up
  26. s3tests: build s3tests_build
  27. docker-compose -f compose/local-s3tests-compose.yml -p seaweedfs up
  28. filer_etcd: build
  29. docker stack deploy -c compose/swarm-etcd.yml fs
  30. clean:
  31. rm ./weed
  32. certstrap:
  33. go get github.com/square/certstrap
  34. certstrap --depot-path compose/tls init --passphrase "" --common-name "SeaweedFS CA" || true
  35. certstrap --depot-path compose/tls request-cert --passphrase "" --common-name volume01 || true
  36. certstrap --depot-path compose/tls request-cert --passphrase "" --common-name master01 || true
  37. certstrap --depot-path compose/tls request-cert --passphrase "" --common-name filer01 || true
  38. certstrap --depot-path compose/tls request-cert --passphrase "" --common-name client01 || true
  39. certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01 || true
  40. certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01 || true
  41. certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01 || true
  42. certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" client01 || true