Skip to content

Commit 5508bf5

Browse files
committed
Add sleep after starting container
1 parent 8dcdb55 commit 5508bf5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.adoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@ To change the variation of image produced, set attributes according to the follo
209209
| `-a riak_client!` | Turns off Riak Python Client install
210210
|===
211211

212+
Sometimes on Travis CI our container isn't accessible right away so sleep for a bit just in case since there's no way to determine how long we need to wait.
213+
214+
.Wait for container to start
215+
[source,bash]
216+
[asciibuild,bash]
217+
----
218+
sleep 3
219+
----
220+
212221
== Test Single Node
213222

214223
Validate the container is started by waiting for it to fully boot, then access the `/stats` endpoint.
@@ -337,7 +346,7 @@ Test that the Python Riak Client can interact with the cluster.
337346

338347
.Pytest Container
339348
[source,Dockerfile]
340-
[asciibuild,Dockerfile,image=riak-docker-tests,run=true,run_opts="--label role=pytests -i -v $(pwd)/test:/usr/src/test -v /var/run/docker.sock:/var/run/docker.sock"]
349+
[asciibuild,Dockerfile,image=riak-docker-tests,run=true,run_opts="--link {riak_pkg} --label role=pytests -i -v $(pwd)/test:/usr/src/test -v /var/run/docker.sock:/var/run/docker.sock"]
341350
----
342351
FROM alpine
343352
RUN apk add --no-cache py-pip bash ca-certificates docker

0 commit comments

Comments
 (0)