mirror of https://github.com/status-im/consul.git
19 lines
387 B
Bash
19 lines
387 B
Bash
#!/usr/bin/env sh
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
set -ex
|
|
|
|
# HACK: UID of consul in the consul-client container
|
|
# This is conveniently also the UID of apt in the envoy container
|
|
CONSUL_UID=100
|
|
ENVOY_UID=$(id -u)
|
|
|
|
sudo consul connect redirect-traffic \
|
|
-proxy-uid $ENVOY_UID \
|
|
-exclude-uid $CONSUL_UID \
|
|
$REDIRECT_TRAFFIC_ARGS
|
|
|
|
exec "$@"
|