javapackages/jp_validator.sh
2023-10-26 11:53:37 +02:00

14 lines
444 B
Bash
Executable file

#!/bin/bash
set -eu
# /mnt/envroot required by SymlinkConfig
podman pull "${JP_VALIDATOR_IMAGE}" || sleep 60
exec podman run --rm --security-opt='label=disable'\
--mount type=bind,source="${TEST_ARTIFACTS}",target='/mnt/test_artifacts/',readonly\
--mount type=bind,source='src/',target='/mnt/config/',readonly\
--mount type=bind,source="${ENVROOT}",target='/mnt/envroot',readonly\
"${JP_VALIDATOR_IMAGE}" ${@} '/mnt/test_artifacts/'\
;