File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
12# This playbook is deprecated in favor of new wire in a box demo solution
23# https://docs.wire.com/latest/how-to/install/demo-wiab.html
34
4- #! /usr/bin/env bash
55# shellcheck disable=SC2087
66
77# This script can be replaced with a more simpler solution of wiab-demo installtion
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ check_or_load_image() {
88 local image_pattern=" $2 "
99
1010 # Check if any image matching pattern exists in docker
11- local existing_image=$( sudo docker images --format " {{.Repository}}:{{.Tag}}" | grep " $image_pattern " | head -1)
11+ local existing_image
12+ existing_image=$( sudo docker images --format " {{.Repository}}:{{.Tag}}" | grep " $image_pattern " | head -1)
1213 if [ -n " $existing_image " ]; then
1314 echo " $existing_image "
1415 return 0
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ set -euo pipefail
44
55CD_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
66TF_DIR=" ${CD_DIR} /../terraform/examples/wiab-demo-hetzner"
7+ # shellcheck disable=SC2034 # May be used in future versions
78BIN_DIR=" ${CD_DIR} /../bin"
9+ # shellcheck disable=SC2034 # May be used in future versions
810ARTIFACTS_DIR=" ${CD_DIR} /demo-build/output"
911ANSIBLE_DIR=" ${CD_DIR} /../ansible"
1012INVENTORY_DIR=" ${ANSIBLE_DIR} /inventory/demo"
You can’t perform that action at this time.
0 commit comments