- cmd = ("docker run"
- " -v $HOME/.ssh:/root/.ssh"
- " -v $HOME/.kube/config:/root/.kube/config"
- " -v $VALIDATION_HOME/tests/variables.yaml:"
- "/opt/akraino/validation/tests/variables.yaml"
- " -v $AKRAINO_HOME/results:/opt/akraino/results"
- " akraino/validation:{0}-latest"
- " bin/sh -c"
- " 'cd /opt/akraino/validation "
- "&& python bluval/bluval.py -l {0} {1}'").format(layer, bluprint)
- args = [cmd]
- try:
- print('Invoking {}'.format(args))
- subprocess.call(args, shell=True)
- except OSError:
- #print('Error while executing {}'.format(args))
- raise BluvalError(OSError)