diff --git a/docker-compose-3.yml b/docker-compose-3.yml index 2a7431872..ef31424d0 100644 --- a/docker-compose-3.yml +++ b/docker-compose-3.yml @@ -62,6 +62,25 @@ services: PILOSA_STORAGE_BACKEND: ${PILOSA_STORAGE_BACKEND:-rbf} volumes: - data:/data + pilosax: + image: build/pilosa + build: + context: . + dockerfile: Dockerfile.pilosa + environment: + PILOSA_ADVERTISE: pilosax:10101 + PILOSA_ADVERTISE_GRPC: pilosax:20101 + PILOSA_CLUSTER_REPLICAS: 1 + PILOSA_DATA_DIR: /data/pilosax + PILOSA_ETCD_ADVERTISE_CLIENT_ADDRESS: http://pilosax:10201 + PILOSA_ETCD_ADVERTISE_PEER_ADDRESS: http://pilosax:10301 + PILOSA_ETCD_INITIAL_CLUSTER: pilosax=http://pilosax:10301 + PILOSA_ETCD_LISTEN_CLIENT_ADDRESS: http://0.0.0.0:10201 + PILOSA_ETCD_LISTEN_PEER_ADDRESS: http://0.0.0.0:10301 + PILOSA_NAME: pilosax + PILOSA_STORAGE_BACKEND: ${PILOSA_STORAGE_BACKEND:-rbf} + volumes: + - data:/data client1: image: tgruben/bash build: diff --git a/testBackupRestore.sh b/testBackupRestore.sh index 6156c27f8..8f9617e7f 100755 --- a/testBackupRestore.sh +++ b/testBackupRestore.sh @@ -19,9 +19,17 @@ curl -X DELETE -s pilosa0:10101/index/sink /pilosa restore -s backupdir --host pilosa0:10101 after=$(/pilosa chksum --host pilosa0:10101) if [ "$before" = "$after" ]; then - echo "PASS" - exit 0 + echo "PASS Cluster" else - echo "FAIL" + echo "FAIL Single" + exit 1 +fi +/pilosa restore -s backupdir --host pilosax:10101 +single=$(/pilosa chksum --host pilosax:10101) +if [ "$before" = "$single" ]; then + echo "PASS Single" + exit 0 +else + echo "FAIL Single" exit 1 fi