name: cephmig-dev x-ceph: &ceph image: ${CEPH_IMAGE:-quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d} init: true stop_grace_period: 30s networks: [lab] logging: driver: json-file options: {max-size: 10m, max-file: '3'} ulimits: core: 0 x-cluster: &cluster <<: *ceph entrypoint: [bash, /lab/cluster.sh] healthcheck: test: [CMD-SHELL, 'test -f /run/cephmig-ready && ceph fs subvolume getpath cephfs demo --group_name migration >/dev/null'] interval: 5s timeout: 10s retries: 60 mem_limit: 4g services: native: <<: *ceph image: cephmig-native:dev build: context: .. dockerfile: dev/Dockerfile.native args: CEPH_IMAGE: ${CEPH_IMAGE:-quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d} entrypoint: [sleep, infinity] depends_on: source: {condition: service_healthy} target: {condition: service_healthy} volumes: - source-config:/clusters/source:ro - target-config:/clusters/target:ro - ./:/lab:ro - migration-state:/state mem_limit: 2g source: <<: *cluster hostname: source environment: {CLUSTER_NAME: source} volumes: - source-state:/state - source-config:/etc/ceph - ./:/lab:ro target: <<: *cluster hostname: target environment: {CLUSTER_NAME: target} volumes: - target-state:/state - target-config:/etc/ceph - ./:/lab:ro client: <<: *ceph image: cephmig-client:dev build: context: . dockerfile: Dockerfile.client args: CEPH_IMAGE: ${CEPH_IMAGE:-quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d} # FUSE mounts remain in the container mount namespace. privileged: true entrypoint: [bash, /lab/client.sh] depends_on: source: {condition: service_healthy} target: {condition: service_healthy} volumes: - source-config:/clusters/source:ro - target-config:/clusters/target:ro - ./:/lab:ro - ../:/workspace:ro - migration-state:/state healthcheck: test: [CMD-SHELL, 'mountpoint -q /mnt/source && mountpoint -q /mnt/target && mountpoint -q /mnt/source-fs && mountpoint -q /mnt/target-fs'] interval: 5s timeout: 5s retries: 30 mem_limit: 2g networks: lab: {} volumes: source-state: {} target-state: {} source-config: {} target-config: {} migration-state: {}