summaryrefslogtreecommitdiff
path: root/bin/entrypoint.sh
blob: c69b149dceebd7cf8aab3b69a915db6efee1edff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env -S dumb-init /bin/sh
# shellcheck shell=sh
set -e

[ -n "$DEBUG" ] && set -x

cd "$(dirname "$0")/.."

./bin/envoy.sh &   # launch envoy in background
./bin/authzd &     # launch authzd in background
./bin/sts &        # launch sts in background

/usr/bin/env -i - \
  APP_ENV="$APP_ENV" \
  BIND_ADDR="$BIND_ADDR" \
  ./bin/sparkled # launch sparkled in foreground