From f4fc6edb0f4f7ff6a4c223ca77b51b63af642a41 Mon Sep 17 00:00:00 2001 From: oikuda Date: Thu, 25 Jun 2015 02:11:10 +0200 Subject: [PATCH] Filled the allSnapshotsAvailable stub with meaningful code. It is now chacking for the base docker template for virtual nodes and reporting properly. --- runtime/linux.tcl | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/runtime/linux.tcl b/runtime/linux.tcl index 2505a6cc..30c57a29 100644 --- a/runtime/linux.tcl +++ b/runtime/linux.tcl @@ -206,7 +206,27 @@ proc fetchRunningExperiments {} {} # current system. #**** proc allSnapshotsAvailable {} { - return 1 + global VROOT_MASTER execMode + catch {exec docker images} images + + if {"imunes/vroot" in $images} { + return 1 + } else { + if {$execMode == "batch"} { + puts "Docker template for virtual nodes: + $VROOT_MASTER +is missing. +Run 'imunes -p' to pull the template." + } else { + tk_dialog .dialog1 "IMUNES error" \ + "Docker template for virtual nodes: + $VROOT_MASTER +is missing. +Run 'imunes -p' to pull the template." \ + info 0 Dismiss + } + return 0 + } } proc prepareDevfs {} {}