Pass fully qualified anteater path to Docker run 01/36601/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 27 Jun 2017 15:17:02 +0000 (08:17 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 27 Jun 2017 17:12:53 +0000 (10:12 -0700)
With moving anteater into a virtualenv inside the container, it is no
longer installed to a location accessible by the default PATH. Using the
absolute path to the anteater binary should allow this to run.

Change-Id: I978e96d6de1b6c7bb63ff877b5bc77e1b6ee44df
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/ci_gate_security/anteater-security-audit.sh

index 2b5c26a..9bd3cc3 100644 (file)
@@ -16,7 +16,7 @@ docker pull opnfv/releng-anteater
 echo "--------------------------------------------------------"
 
 cmd="docker run -i $envs $vols --rm opnfv/releng-anteater \
-anteater --project $PROJECT --patchset /home/opnfv/anteater/$PROJECT/patchset"
+/home/opnfv/venv/bin/anteater --project $PROJECT --patchset /home/opnfv/anteater/$PROJECT/patchset"
 echo "Running docker container"
 echo "$cmd"
 $cmd > $WORKSPACE/securityaudit.log 2>&1