File: example.sh

package info (click to toggle)
golang-github-envoyproxy-go-control-plane 0.13.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,776 kB
  • sloc: sh: 190; makefile: 110
file content (24 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail

##
## Runs Envoy and the example control plane server.  See
## `internal/example` for the go source.
##

# Envoy start-up command
ENVOY=${ENVOY:-/usr/local/bin/envoy}

# Start envoy: important to keep drain time short
(${ENVOY} -c sample/bootstrap-xds.yaml --drain-time-s 1 -l debug)&
ENVOY_PID=$!

function cleanup() {
  kill ${ENVOY_PID}
}
trap cleanup EXIT

# Run the control plane
bin/example -debug $@