2019-04-29 17:27:57 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2019-06-21 16:06:25 +01:00
|
|
|
# Force rebuild of the exec container since this doesn't happen if only the
|
|
|
|
# version argument changed which means we end up testing the wrong version of
|
|
|
|
# Envoy.
|
|
|
|
docker-compose build s1-sidecar-proxy-consul-exec
|
|
|
|
|
2019-04-29 17:27:57 +01:00
|
|
|
# Bring up s1 and it's proxy as well because the check that it has a cert causes
|
|
|
|
# a proxy connection to be opened and having the backend not be available seems
|
|
|
|
# to cause Envoy to fail non-deterministically in CI (rarely on local machine).
|
|
|
|
# It might be related to this know issue
|
|
|
|
# https://github.com/envoyproxy/envoy/issues/2800 where TcpProxy will error if
|
|
|
|
# the backend is down sometimes part way through the handshake.
|
2019-06-21 16:06:25 +01:00
|
|
|
export REQUIRED_SERVICES="s1 s1-sidecar-proxy-consul-exec"
|