30 lines
415 B
Bash
Executable file
30 lines
415 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
REPO=quay.io/quay/quay-dev
|
|
|
|
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
|