dockerfile: combine GPL check into one line
This commit is contained in:
parent
8810157586
commit
0637091a8b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue