Skip to content

Commit 127272b

Browse files
committed
fix: test if gzipping the docker tar image works
1 parent b8179bc commit 127272b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies:
2727
- mkdir -p $WORKDIR && sudo setfacl -d -m group:ubuntu:rwx $WORKDIR && sudo setfacl -m group:ubuntu:rwx $WORKDIR
2828
- mkdir -p $HOME/docker $HOME/examples $WORKDIR/tests $WORKDIR/logs $WORKDIR/crashfiles ${CIRCLE_TEST_REPORTS}/tests/
2929
- if [[ ! -e "$HOME/bin/codecov" ]]; then mkdir -p $HOME/bin; curl -so $HOME/bin/codecov https://codecov.io/bash && chmod 755 $HOME/bin/codecov; fi
30-
- docker load --input $HOME/docker/cache.tar || true :
30+
- gzcat $HOME/docker/cache.tar.gz | docker loaddocker load || true :
3131
timeout: 6000
3232
override:
3333
# Get data
@@ -55,7 +55,7 @@ dependencies:
5555
done && [ "$e" -eq "0" ]
5656
:
5757
timeout: 6000
58-
- docker save -o $HOME/docker/cache.tar ubuntu:xenial-20161213 nipype/base:latest nipype/nipype:py36 nipype/nipype:py27 :
58+
- docker save ubuntu:xenial-20161213 nipype/base:latest nipype/nipype:py36 nipype/nipype:py27 | gzip > -o $HOME/docker/cache.tar.gz :
5959
timeout: 6000
6060

6161
test:

0 commit comments

Comments
 (0)