dockerfile: combine GPL check into one line

This commit is contained in:
Jimmy Zelinskie 2016-05-27 13:33:31 -04:00
parent 8810157586
commit 0637091a8b

View file

@ -43,8 +43,9 @@ RUN venv/bin/pip freeze
# Check python dependencies for the GPL
# 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
RUN test -z $(cat pipinfo.txt | grep GPL | grep -v LGPL)
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) &&
rm pipinfo.txt
# Install the binary dependencies
ADD binary_dependencies binary_dependencies