Skip to content

Commit 0dfc74d

Browse files
committed
Merge pull request #2675 from aledbf/add_wait_to_gateway
fix(gateway): wait until radosgw is accessible
2 parents 2dd3668 + 56e4cec commit 0dfc74d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deisctl/units/deis-store-gateway.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ TimeoutStartSec=20m
77
ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/store-gateway` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE"
88
ExecStartPre=/bin/sh -c "docker inspect deis-store-gateway >/dev/null 2>&1 && docker rm -f deis-store-gateway || true"
99
ExecStart=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/store-gateway` && docker run --name deis-store-gateway -h deis-store-gateway --rm -e HOST=$COREOS_PRIVATE_IPV4 -e EXTERNAL_PORT=8888 -p 8888:8888 $IMAGE"
10+
ExecStartPost=/bin/sh -c "until (echo 'Waiting for ceph gateway on 8888/tcp...' && curl -sSL http://localhost:8888|grep -e '<ID>anonymous</ID><DisplayName></DisplayName>' >/dev/null 2>&1); do sleep 1; done"
1011
ExecStopPost=-/usr/bin/docker rm -f deis-store-gateway
1112
Restart=on-failure
1213
RestartSec=5

0 commit comments

Comments
 (0)