vp-build/common/travis/docker.sh
Robert Lowry e450363b00 common/travis/docker.sh: add control variables
for more flexible local testing using existing tools
2019-10-21 18:32:28 +02:00

19 lines
404 B
Bash
Executable File

#!/bin/sh
#
# docker.sh
[ "$XLINT" ] && exit 0
DOCKER_NAME=${DOCKER_NAME:-void}
/bin/echo -e "\x1b[32mPulling docker image $DOCKER_BASE-$BOOTSTRAP:$TAG...\x1b[0m"
docker pull $DOCKER_BASE-$BOOTSTRAP:$TAG
docker run -d \
--name $DOCKER_NAME \
-v "$(pwd)":/hostrepo \
-v /tmp:/tmp \
-e XLINT="$XLINT" \
-e PATH="$PATH" \
$DOCKER_BASE-$BOOTSTRAP:$TAG \
/bin/sh -c 'sleep inf'