You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
434 B
11 lines
434 B
#!/bin/bash |
|
|
|
set -e |
|
|
|
[[ -z "${IMAGE_NAME}" ]] && IMAGE_NAME="lyft/envoy-build-ubuntu" |
|
[[ -z "${IMAGE_ID}" ]] && IMAGE_ID="latest" |
|
[[ -z "${ENVOY_API_DOCKER_BUILD_DIR}" ]] && ENVOY_API_DOCKER_BUILD_DIR=/tmp/envoy-api-docker-build |
|
|
|
mkdir -p "${ENVOY_API_DOCKER_BUILD_DIR}" |
|
docker run -t -i -u $(id -u):$(id -g) -v "${ENVOY_API_DOCKER_BUILD_DIR}":/build \ |
|
-v "$PWD":/source "${IMAGE_NAME}":"${IMAGE_ID}" /bin/bash -c "cd source && $*"
|
|
|