aboutsummaryrefslogtreecommitdiff
path: root/docker/compose
diff options
context:
space:
mode:
authorPatrick Schmidt <patrick.schmidt@innogames.com>2022-08-31 18:27:53 +0200
committerGitHub <noreply@github.com>2022-08-31 09:27:53 -0700
commita73e177ecff78aee1c59b3b57a296b10a778bc9e (patch)
tree6d733b44cb9a059c6470ebb318595fc90dd5a9d8 /docker/compose
parent4a4ef3cc3c24d0c86defe82445448a567316cc36 (diff)
downloadseaweedfs-a73e177ecff78aee1c59b3b57a296b10a778bc9e.tar.xz
seaweedfs-a73e177ecff78aee1c59b3b57a296b10a778bc9e.zip
Add an End-to-End workflow for FUSE mount (#3562)
* Add an e2e workflow to test FUSE mount * Fix deadlocks during concurrent r/w
Diffstat (limited to 'docker/compose')
-rw-r--r--docker/compose/e2e-mount.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/docker/compose/e2e-mount.yml b/docker/compose/e2e-mount.yml
new file mode 100644
index 000000000..d5da9c221
--- /dev/null
+++ b/docker/compose/e2e-mount.yml
@@ -0,0 +1,53 @@
+version: '3.9'
+
+services:
+ master:
+ image: chrislusf/seaweedfs:e2e
+ command: "-v=4 master -ip=master -ip.bind=0.0.0.0 -raftBootstrap"
+ healthcheck:
+ test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
+ interval: 1s
+ timeout: 60s
+
+ volume:
+ image: chrislusf/seaweedfs:e2e
+ command: "-v=4 volume -mserver=master:9333 -ip=volume -ip.bind=0.0.0.0 -preStopSeconds=1"
+ healthcheck:
+ test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8080/healthz" ]
+ interval: 1s
+ timeout: 30s
+ depends_on:
+ master:
+ condition: service_healthy
+
+ filer:
+ image: chrislusf/seaweedfs:e2e
+ command: "-v=4 filer -master=master:9333 -ip=filer -ip.bind=0.0.0.0"
+ healthcheck:
+ test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8888" ]
+ interval: 1s
+ timeout: 30s
+ depends_on:
+ volume:
+ condition: service_healthy
+
+ mount:
+ image: chrislusf/seaweedfs:e2e
+ command: "-v=4 mount -filer=filer:8888 -filer.path=/ -dirAutoCreate -dir=/mnt/seaweedfs"
+ cap_add:
+ - SYS_ADMIN
+ devices:
+ - /dev/fuse
+ security_opt:
+ - apparmor:unconfined
+ deploy:
+ resources:
+ limits:
+ memory: 4096m
+ healthcheck:
+ test: [ "CMD", "mountpoint", "-q", "--", "/mnt/seaweedfs" ]
+ interval: 1s
+ timeout: 30s
+ depends_on:
+ filer:
+ condition: service_healthy