Skip to content

Commit

Permalink
[CONSUL-454] Check ports in the Server and Agent containers (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolavayen authored and joselo85 committed Dec 21, 2022
1 parent ca3c608 commit 85e9033
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/integration/connect/envoy/run-tests.windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,23 @@ function start_consul {
# 8500/8502 are for consul
# 9411 is for zipkin which shares the network with consul
# 16686 is for jaeger ui which also shares the network with consul
ports=(
server_ports=(
'-p=8500:8500'
'-p=8502:8502'
)
agent_ports=(
'-p=9411:9411'
'-p=16686:16686'
)
case "$DC" in
secondary)
ports=(
server_ports=(
'-p=9500:8500'
'-p=9502:8502'
)
;;
alpha)
ports=(
server_ports=(
'-p=9510:8500'
'-p=9512:8502'
)
Expand Down Expand Up @@ -231,6 +233,7 @@ function start_consul {
--hostname "consul-${DC}-server" \
--network-alias "consul-${DC}-server" \
-e "CONSUL_LICENSE=$license" \
${server_ports[@]} \
windows/consul:local \
agent -dev -datacenter "${DC}" \
-config-dir "C:\\workdir\\${DC}\\consul" \
Expand All @@ -245,7 +248,7 @@ function start_consul {
--hostname "consul-${DC}-client" \
--network-alias "consul-${DC}-client" \
-e "CONSUL_LICENSE=$license" \
${ports[@]} \
${agent_ports[@]} \
windows/consul:local \
agent -datacenter "${DC}" \
-config-dir "C:\\workdir\\${DC}\\consul" \
Expand All @@ -266,7 +269,7 @@ function start_consul {
--network-alias "consul-${DC}-client" \
--network-alias "consul-${DC}-server" \
-e "CONSUL_LICENSE=$license" \
${ports[@]} \
${server_ports[@]} ${agent_ports[@]} \
windows/consul:local \
agent -dev -datacenter "${DC}" \
-config-dir "C:\\workdir\\${DC}\\consul" \
Expand Down

0 comments on commit 85e9033

Please sign in to comment.