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.
12 lines
413 B
12 lines
413 B
8 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
[[ -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 pull lyft/envoy-build:"${IMAGE_ID}"
|
||
|
docker run -t -i -u $(id -u):$(id -g) -v "${ENVOY_API_DOCKER_BUILD_DIR}":/build \
|
||
|
-v "$PWD":/source lyft/envoy-build:"${IMAGE_ID}" /bin/bash -c "cd source && $*"
|