Prevent python to write .pyc files on import 69/2169/1
authorJuha Kosonen <juha.kosonen@nokia.com>
Fri, 20 Dec 2019 10:39:51 +0000 (12:39 +0200)
committerJuha Kosonen <juha.kosonen@nokia.com>
Fri, 20 Dec 2019 10:39:51 +0000 (12:39 +0200)
JIRA: VAL-94

Change-Id: I3bf6dd55cb510e2d9a2704369a1bd0599b48eb63
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
bluval/Dockerfile
bluval/blucon.py

index 6a49c2f..f01deaa 100644 (file)
@@ -32,4 +32,4 @@ RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation
 RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt
 
 WORKDIR /opt/akraino/validation
-ENTRYPOINT  ["python3", "bluval/blucon.py"]
+ENTRYPOINT  ["python3", "-B", "bluval/blucon.py"]
index cea16de..0d5d7ca 100644 (file)
@@ -61,7 +61,7 @@ def invoke_docker(bluprint, layer):
            " akraino/validation:{0}-latest"
            " /bin/sh -c"
            " 'cd /opt/akraino/validation "
-           "&& python bluval/bluval.py -l {0} {1} {2}'"
+           "&& python -B bluval/bluval.py -l {0} {1} {2}'"
            .format(layer, ("-o" if _OPTIONAL_ALSO else ""), bluprint))
 
     args = [cmd]