Add fulldbtest support to local-docker.sh
This commit is contained in:
parent
1e76f71e3d
commit
348f70c949
2 changed files with 9 additions and 1 deletions
5
dev.df
5
dev.df
|
@ -19,3 +19,8 @@ RUN venv/bin/pip install -r requirements.txt
|
|||
WORKDIR /src/quay
|
||||
ENV PYTHONPATH=/
|
||||
ENV PATH=/venv/bin:$PATH
|
||||
|
||||
RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
|
||||
&& echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y docker-engine
|
||||
|
|
|
@ -7,7 +7,7 @@ REPO=quay.io/quay/quay-dev
|
|||
d ()
|
||||
{
|
||||
docker build -t $REPO -f dev.df .
|
||||
docker -- run --rm -it --net=host -v $(pwd)/..:/src $REPO $*
|
||||
docker -- run --rm -v /var/run/docker.sock:/run/docker.sock -it --net=host -v $(pwd)/..:/src $REPO $*
|
||||
}
|
||||
|
||||
case $1 in
|
||||
|
@ -27,6 +27,9 @@ initdb)
|
|||
rm -f test/data/test.db
|
||||
d /venv/bin/python initdb.py
|
||||
;;
|
||||
fulldbtest)
|
||||
d bash /src/quay/test/fulldbtest.sh
|
||||
;;
|
||||
*)
|
||||
echo "unknown option"
|
||||
exit 1
|
||||
|
|
Reference in a new issue