]> git.puffer.fish Git - mirror/frr.git/commitdiff
Docker: Update buildscript not to delete old images
authorChristian Franke <chris@opensourcerouting.org>
Thu, 18 Oct 2018 10:07:24 +0000 (12:07 +0200)
committerChristian Franke <chris@opensourcerouting.org>
Thu, 29 Nov 2018 15:51:27 +0000 (16:51 +0100)
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
tests/topotests/docker/docker.sh

index ac40e6c5afa9c379ad2b9c72705ee5469a6129dc..4dcee218c9086f656037dc72385afe65915c740b 100755 (executable)
@@ -30,20 +30,7 @@ CDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 # Script begin
 #
 
-OLD_IMAGE_SHA=$( \
-       docker images | \
-       egrep "^topotests" | \
-       sed -r "s/( )+/ /g" | \
-       cut -d " " -f 3 \
-)
-
-docker build --force-rm --pull --compress -t topotests . || \
-       log_fatal "failed to generate topotest docker image"
-
-if [ ! -z "$OLD_IMAGE_SHA" ]; then
-       log_info "Removing old topotest image"
-       docker rmi $OLD_IMAGE_SHA || \
-               log_warning "failed to remove old image"
-fi
-
-exit 0
+exec docker build --pull \
+                 --compress \
+                 -t frrrouting/topotests \
+                 .