Add buildman and test to the docker build script

This commit is contained in:
Matt Jibson 2015-08-18 13:47:16 -04:00
parent 3f6f5162e8
commit 72c21a98e8
3 changed files with 62 additions and 9 deletions

View file

@ -1,11 +1,30 @@
#!/bin/sh
# Run this from the quay directory to start a quay development instance in
# docker on port 5000.
#!/bin/bash
set -e
REPO=quay.io/quay/quay-dev
docker build -t $REPO -f dev.df .
docker run -it -p 5000:5000 -v $(pwd)/..:/src $REPO bash /src/quay/local-run.sh
d ()
{
docker build -t $REPO -f dev.df .
docker -- run --rm -it --net=host -v $(pwd)/..:/src $REPO $*
}
case $1 in
buildman)
d /venv/bin/python -m buildman.builder
;;
dev)
d bash /src/quay/local-run.sh
;;
notifications)
d /venv/bin/python -m workers.notificationworker
;;
test)
d bash /src/quay/local-test.sh
;;
*)
echo "unknown option"
exit 1
;;
esac