Add default volume mount of /home/jketreno/docker/intel-media-ffmpeg/data:/data to test-image.sh
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
8c53d42110
commit
763a50adf1
@ -32,14 +32,18 @@ docker pull ${REGISTRY_URL}/${CONTAINER}:${TAG} || fail "Unable to pull ${REGIST
|
|||||||
ADD_GROUPS="--group-add ${VIDEO}"
|
ADD_GROUPS="--group-add ${VIDEO}"
|
||||||
[[ "${RENDER}" != "" ]] && ADD_GROUPS+=" --group-add ${RENDER}"
|
[[ "${RENDER}" != "" ]] && ADD_GROUPS+=" --group-add ${RENDER}"
|
||||||
|
|
||||||
|
[[ -e data/ ]] && rm -rf data
|
||||||
|
|
||||||
|
mkdir data || fail "Unable to make data volume directory"
|
||||||
|
|
||||||
CMD="docker run \
|
CMD="docker run \
|
||||||
${ADD_GROUPS} \
|
${ADD_GROUPS} \
|
||||||
--rm \
|
--rm \
|
||||||
--device=/dev/dri \
|
--device=/dev/dri \
|
||||||
|
-v data:/data \
|
||||||
${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
||||||
test"
|
test"
|
||||||
|
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Running test with:
|
Running test with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user