#!/bin/bash

# Copyright 2018 Google Cloud Platform Proxy Authors

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset

echo "Starting Proxy......"
CONFIGMANAGER=${CONFIGMANAGER:-apiproxy/configmanager}
ENVOY=${ENVOY:-apiproxy/envoy}

${CONFIGMANAGER}  $@  &
${ENVOY} -c apiproxy/envoy_bootstrap_v2_startup.yaml

#!/bin/bash

# Copyright 2018 Google Cloud Platform Proxy Authors

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset

echo "Starting Proxy......"
CONFIGMANAGER=${CONFIGMANAGER:-apiproxy/configmanager}
ENVOY=${ENVOY:-apiproxy/envoy}

# Optional args for Envoy. Example, to set the logging level:
# docker run -e 'ENVOY_ARGS="-l debug"' ...
ENVOY_ARGS=${ENVOY_ARGS:-""}

${CONFIGMANAGER}  $@  &
${ENVOY} -c apiproxy/envoy_bootstrap_v2_startup.yaml ${ENVOY_ARGS}

Allow arguments for Envoy in the Dockerfile
Allow arguments for Envoy in the Dockerfile

This makes it easier to check the logs of a deployed instance.

Change-Id: Ib3244dc11a797087c0b5bea0799cc9f5c28e4239
