Commit 45d4c61e authored by Martin Vala's avatar Martin Vala
Browse files

Doing abort when docker image cannot be downloaded

parent 07dce537
Pipeline #607533 skipped with stage
Name: eos-docker-utils Name: eos-docker-utils
Version: 1.0.13 Version: 1.0.14
Release: 1%{?dist} Release: 1%{?dist}
Summary: EOS docker utils Summary: EOS docker utils
License: LGPL v3+ License: LGPL v3+
......
...@@ -182,7 +182,7 @@ function eosDockerPull() { ...@@ -182,7 +182,7 @@ function eosDockerPull() {
DEBUG "Pulling $t ..." DEBUG "Pulling $t ..."
if [ "$t" == "mgm" -o "$t" == "_single" ];then if [ "$t" == "mgm" -o "$t" == "_single" ];then
INFO "Pulling docker '$ED_DOCKER_PREFIX/$ED_DOCKER_IMAGE_NAME_VERSION' ..." INFO "Pulling docker '$ED_DOCKER_PREFIX/$ED_DOCKER_IMAGE_NAME_VERSION' ..."
$ED_DOCKER_CMD pull $ED_DOCKER_PREFIX/$ED_DOCKER_IMAGE_NAME_VERSION $ED_DOCKER_CMD pull $ED_DOCKER_PREFIX/$ED_DOCKER_IMAGE_NAME_VERSION || { ERROR "Poblem doing '$ED_DOCKER_CMD pull $ED_DOCKER_PREFIX/$ED_DOCKER_IMAGE_NAME_VERSION' !!! Aborting ..."; exit 1; }
elif [ "$t" == "fsts" ];then elif [ "$t" == "fsts" ];then
[[ $ED_NODE_TYPE == mgm* ]] && [ -f $ED_ROOT_DIR/$ED_FST_HOSTS ] && eos-docker-ssh pull [[ $ED_NODE_TYPE == mgm* ]] && [ -f $ED_ROOT_DIR/$ED_FST_HOSTS ] && eos-docker-ssh pull
elif [ "$t" == "host" ];then elif [ "$t" == "host" ];then
......
Supports Markdown
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