docker_run.sh 285 Bytes
Newer Older
Nick Elsmore's avatar
Nick Elsmore committed
1
2
#! /bin/bash

Nick Elsmore's avatar
Nick Elsmore committed
3
4
if [ -z ${BUILD_DIR+x} ]; then
	echo "BUILD_DIR not set"
Nick Elsmore's avatar
Nick Elsmore committed
5
6
7
	exit 1
fi

Nick Elsmore's avatar
Nick Elsmore committed
8
9
if [ ! -d $BUILD_DIR ]; then
	echo "$BUILD_DIR not found."
Nick Elsmore's avatar
Nick Elsmore committed
10
11
12
13
14
	echo "Please create it before running script."
	exit 1
fi

docker run \
15
	--volume $BUILD_DIR:/home/docker/pyra-build:z \
Nick Elsmore's avatar
Nick Elsmore committed
16
	-it pyra-build "$@"