You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2017/02/19 18:29:38 UTC
incubator-predictionio git commit: Wait a bit for everything to be
ready
Repository: incubator-predictionio
Updated Branches:
refs/heads/ds/docker e9075653c -> b6214b46e
Wait a bit for everything to be ready
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/b6214b46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/b6214b46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/b6214b46
Branch: refs/heads/ds/docker
Commit: b6214b46e2f9775fea58d38f19c01509ee90ba3c
Parents: e907565
Author: Donald Szeto <do...@apache.org>
Authored: Sun Feb 19 10:29:23 2017 -0800
Committer: Donald Szeto <do...@apache.org>
Committed: Sun Feb 19 10:29:23 2017 -0800
----------------------------------------------------------------------
tests/Dockerfile | 2 ++
tests/docker-files/init.sh | 2 ++
2 files changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/b6214b46/tests/Dockerfile
----------------------------------------------------------------------
diff --git a/tests/Dockerfile b/tests/Dockerfile
index 9f4decd..aef2229 100644
--- a/tests/Dockerfile
+++ b/tests/Dockerfile
@@ -46,5 +46,7 @@ EXPOSE 8000
# eventserver
EXPOSE 7070
+ENV SLEEP_TIME 30
+
ENTRYPOINT ["/init.sh"]
CMD 'bash'
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/b6214b46/tests/docker-files/init.sh
----------------------------------------------------------------------
diff --git a/tests/docker-files/init.sh b/tests/docker-files/init.sh
index e35597b..8dc08ea 100755
--- a/tests/docker-files/init.sh
+++ b/tests/docker-files/init.sh
@@ -18,4 +18,6 @@
set -e
export PYTHONPATH=/$PIO_HOME/tests:$PYTHONPATH
+echo "Sleeping $SLEEP_TIME seconds for all services to be ready..."
+sleep $SLEEP_TIME
eval $@