Fix license test in Dockerfile

This commit is contained in:
Brad Ison 2018-02-08 16:43:40 -05:00
parent d1ba2dcfc3
commit d4ee938a5d

View file

@ -10,7 +10,7 @@ COPY requirements.txt requirements-tests.txt ./
# Due to the following bug, pip results must be piped to a file before grepping:
# https://github.com/pypa/pip/pull/3304
RUN cat requirements.txt | grep -v "^-e" | awk -F'==' '{print $1}' | xargs venv/bin/pip --disable-pip-version-check show > pipinfo.txt && \
test -z $(cat pipinfo.txt | grep GPL | grep -v LGPL) && \
test -z "$(cat pipinfo.txt | grep GPL | grep -v LGPL)" && \
rm pipinfo.txt
RUN virtualenv --distribute venv \
@ -57,4 +57,4 @@ RUN PYTHONPATH=$QUAYPATH venv/bin/alembic heads | grep -E '^[0-9a-f]+ \(head\)$'
RUN ./scripts/detect-config.sh
CMD ./quay-entrypoint.sh
CMD ./quay-entrypoint.sh