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.

62 lines
2.1 KiB

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