summaryrefslogtreecommitdiff
path: root/bin/entrypoint.sh
blob: 82fa4795441766725c95a98b97da7d203e8223fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/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

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