From 90452990990f149e5a81cda0eb8078b46ac5ca9e Mon Sep 17 00:00:00 2001 From: kylef-lab41 Date: Thu, 9 Jul 2015 12:52:30 -0700 Subject: [PATCH] Pull latest repo and images before running containers --- 2-run-spark-master.sh | 5 +++++ 3-run-spark-worker.sh | 5 +++++ 4-run-spark-client-ipython.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/2-run-spark-master.sh b/2-run-spark-master.sh index 8cb5b82..2643d4f 100755 --- a/2-run-spark-master.sh +++ b/2-run-spark-master.sh @@ -8,6 +8,11 @@ source variables_and_helpers.sh __image=$__image_master +# update repo and images +git pull origin master && \ +docker pull $__image # alternatively: ./1-build.sh + + # get host DNS server (for internal resolution) __dns=$(dns_detect) diff --git a/3-run-spark-worker.sh b/3-run-spark-worker.sh index 0f16c38..651d5e3 100755 --- a/3-run-spark-worker.sh +++ b/3-run-spark-worker.sh @@ -17,6 +17,11 @@ fi __image=$__image_worker +# update repo and images +git pull origin master && \ +docker pull $__image # alternatively: ./1-build.sh + + # get host DNS server (for internal resolution) __dns=$(dns_detect) diff --git a/4-run-spark-client-ipython.sh b/4-run-spark-client-ipython.sh index c7df9d2..9a2c1e2 100755 --- a/4-run-spark-client-ipython.sh +++ b/4-run-spark-client-ipython.sh @@ -17,6 +17,11 @@ fi __image=$__image_client +# update repo and images +git pull origin master && \ +docker pull $__image # alternatively: ./1-build.sh + + # get host DNS server (for internal resolution) __dns=$(dns_detect)