From 3ecd989500c9ee23460b3707e5713f944346d070 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 22 Jan 2021 22:47:23 -0800 Subject: [PATCH] add local mount for testing --- docker/Makefile | 3 +++ docker/local-mount-compose.yml | 47 ++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 docker/local-mount-compose.yml diff --git a/docker/Makefile b/docker/Makefile index c2e9a12e7..3712db4be 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -12,6 +12,9 @@ build: dev: build docker-compose -f local-dev-compose.yml -p seaweedfs up +dev_mount: build + docker-compose -f local-mount-compose.yml -p seaweedfs up + k8s: build docker-compose -f local-k8s-compose.yml -p seaweedfs up diff --git a/docker/local-mount-compose.yml b/docker/local-mount-compose.yml new file mode 100644 index 000000000..97fc652d4 --- /dev/null +++ b/docker/local-mount-compose.yml @@ -0,0 +1,47 @@ +version: '2' + +services: + master: + image: chrislusf/seaweedfs:local + ports: + - 9333:9333 + - 19333:19333 + command: "master -ip=master" + volume: + image: chrislusf/seaweedfs:local + ports: + - 8080:8080 + - 18080:18080 + - 9325:9325 + command: 'volume -mserver="master:9333" -port=8080 -metricsPort=9325 -preStopSeconds=1' + depends_on: + - master + filer: + image: chrislusf/seaweedfs:local + ports: + - 8888:8888 + - 18888:18888 + - 9326:9326 + command: 'filer -master="master:9333" -metricsPort=9326' + tty: true + stdin_open: true + depends_on: + - master + - volume + mount_1: + image: chrislusf/seaweedfs:local + privileged: true + entrypoint: '/bin/sh -c "mkdir -p t1 && mkdir -p cache/t1 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t1 -dir=./t1 -filer.path=/"' + depends_on: + - master + - volume + - filer + mount_2: + image: chrislusf/seaweedfs:local + privileged: true + entrypoint: '/bin/sh -c "mkdir -p t2 && mkdir -p cache/t2 && weed -v=4 mount -filer=filer:8888 -cacheDir=./cache/t2 -dir=./t2 -filer.path=/"' + depends_on: + - master + - volume + - filer + - mount_1