Skip to content
Snippets Groups Projects
Verified Commit 34bdda57 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

:sparkles: improve reproducibility

to avoid interaction with ~/.local which is the python cache
for package i use PYTHONNOUSERSITE.
it could interact during the build phase but more important
at runtime (if we have a more recent lib in our cache than in image)
parent 6da523a6
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ from: ubuntu:bionic
#################################
# installing craw #
#################################
export PYTHONNOUSERSITE=1
# don't add user site-packages directory to sys.path.
# this avoid to interact with ~/.local
cd /usr/local/src
git clone https://gitlab.pasteur.fr/bneron/craw/
cd craw
......@@ -37,6 +40,12 @@ from: ubuntu:bionic
apt-get autoremove -y
apt-get clean -y
%environment
# to be reproducible we should nevr search
# in python user cache which is the user home
# and is mounted automically
export PYTHONNOUSERSITE=1
%test
/usr/bin/python3 /craw/tests/run_tests.py -vv
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment