[travis] Cache docker imgs (#3523)
* [travis] Cache build img Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu> * [travis] Safely cache imgs Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>pull/3526/head
parent
0c6dd80862
commit
0b6a90a28c
@ -1,5 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
set -e |
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" |
||||
CACHE_DIR="docker_images" |
||||
mkdir -p $CACHE_DIR |
||||
echo "pulling cached docker img" |
||||
docker load -i $CACHE_DIR/images.tar || true |
||||
docker pull harmonyone/localnet-test |
||||
echo "saving cached docker img" |
||||
docker save -o $CACHE_DIR/images.tar harmonyone/localnet-test |
||||
docker run -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test -r |
@ -1,5 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
set -e |
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" |
||||
CACHE_DIR="docker_images" |
||||
mkdir -p $CACHE_DIR |
||||
echo "pulling cached docker img" |
||||
docker load -i $CACHE_DIR/images.tar || true |
||||
docker pull harmonyone/localnet-test |
||||
echo "saving cached docker img" |
||||
docker save -o $CACHE_DIR/images.tar harmonyone/localnet-test |
||||
docker run -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test -n |
Loading…
Reference in new issue