add script to run commands in the avian docker container

This commit is contained in:
Joshua Warner 2014-04-22 13:12:40 -07:00
parent 50bca071b2
commit a0e7ed64d0

10
docker-build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
if test $# -eq 0; then
echo "Usage: $0 <command_to_run_in_docker>"
echo "Ex: $0 make test"
echo "Ex: $0 ./test/ci.sh"
exit 1
fi
docker run --rm -i -t -v $(cd $(dirname "$0") && pwd):/var/avian -u $(id -u "${USER}") joshuawarner32/avian-build "${@}"