Commit 42bc32f6 authored by Andrei Vagin's avatar Andrei Vagin

travis/docker: install docker from the test repo

C/R in Docker from the stable repo is broken.
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 5ecbc104
...@@ -12,7 +12,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - ...@@ -12,7 +12,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \ add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \ $(lsb_release -cs) \
stable" stable test"
apt-get update -qq apt-get update -qq
...@@ -50,6 +50,8 @@ for i in `seq 50`; do ...@@ -50,6 +50,8 @@ for i in `seq 50`; do
docker exec cr ps axf && docker exec cr ps axf &&
docker checkpoint create cr checkpoint$i && docker checkpoint create cr checkpoint$i &&
sleep 1 && sleep 1 &&
docker ps &&
(docker exec cr true && exit 1 || exit 0) &&
docker start --checkpoint checkpoint$i cr 2>&1 | tee log || { docker start --checkpoint checkpoint$i cr 2>&1 | tee log || {
cat "`cat log | grep 'log file:' | sed 's/log file:\s*//'`" || true cat "`cat log | grep 'log file:' | sed 's/log file:\s*//'`" || true
docker logs cr || true docker logs cr || true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment