ci: Remove unnecessary MODE declarations

parent b13d73de
......@@ -15,7 +15,7 @@ function container_id {
local svc=$1
local label
if [[ "$MODE" == "swarm" ]]; then
if [[ "${MODE:-}" == "swarm" ]]; then
label="com.docker.swarm.service.name=elk_${svc}"
else
label="com.docker.compose.service=${svc}"
......@@ -50,7 +50,7 @@ function service_ip {
local ip
if [[ "$MODE" == "swarm" ]]; then
if [[ "${MODE:-}" == "swarm" ]]; then
#ingress_net="$(docker network inspect ingress --format '{{ .Id }}')"
#ip="$(docker service inspect elk_"$svc" --format "{{ range .Endpoint.VirtualIPs }}{{ if eq .NetworkID \"${ingress_net}\" }}{{ .Addr }}{{ end }}{{ end }}" | cut -d/ -f1)"
node="$(docker node ls --format '{{ .ID }}')"
......
......@@ -7,9 +7,6 @@ set -o pipefail
source "$(dirname ${BASH_SOURCE[0]})/lib/testing.sh"
declare MODE=""
cid="$(container_id apm-server)"
ip="$(service_ip apm-server)"
......
......@@ -7,11 +7,6 @@ set -o pipefail
source "$(dirname ${BASH_SOURCE[0]})/lib/testing.sh"
declare MODE=""
if [ "$#" -ge 1 ]; then
MODE=$1
fi
cid_es="$(container_id elasticsearch)"
cid_ls="$(container_id logstash)"
cid_kb="$(container_id kibana)"
......
......@@ -7,9 +7,6 @@ set -o pipefail
source "$(dirname ${BASH_SOURCE[0]})/lib/testing.sh"
declare MODE=""
cid_es="$(container_id elasticsearch)"
cid_en="$(container_id enterprise-search)"
......
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