Add render group to Docker container run line
Signed-off-by: James P. Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
b34b1d18fd
commit
dbbf9c0c16
@ -25,17 +25,21 @@ function fail {
|
|||||||
exit -1
|
exit -1
|
||||||
}
|
}
|
||||||
|
|
||||||
VIDEO=$(getent group video | sed -E 's,^video:[^:]*:([^:]*):.*$,\1,')
|
VIDEO=$(getent group video | sed -E 's,^video:[^:]*:([^:]*):.*$,\1,')
|
||||||
|
RENDER=$(getent group render | sed -E 's,^render:[^:]*:([^:]*):.*$,\1,')
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Running test with video GID as ${VIDEO}
|
Running test with:
|
||||||
|
|
||||||
|
video group : ${VIDEO}
|
||||||
|
render group: ${RENDER}
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo -e "Downloading test content: "
|
echo -n "Downloading test content: "
|
||||||
mkdir $(pwd)/media
|
mkdir $(pwd)/media
|
||||||
wget -q -O $(pwd)/media/AUD_MW_E.264 \
|
wget -q -O $(pwd)/media/AUD_MW_E.264 \
|
||||||
https://fate-suite.libav.org/h264-conformance/AUD_MW_E.264 ||
|
https://fate-suite.libav.org/h264-conformance/AUD_MW_E.264 ||
|
||||||
@ -43,10 +47,12 @@ wget -q -O $(pwd)/media/AUD_MW_E.264 \
|
|||||||
chmod -R 777 $(pwd)/media || fail "Unable to set permissions"
|
chmod -R 777 $(pwd)/media || fail "Unable to set permissions"
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
docker run --group-add ${VIDEO} \
|
docker run \
|
||||||
--rm \
|
--group-add ${VIDEO} \
|
||||||
--device=/dev/dri \
|
--group-add ${RENDER} \
|
||||||
-e QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128} \
|
--rm \
|
||||||
--volume $(pwd)/media:/media \
|
--device=/dev/dri \
|
||||||
${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
-e QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128} \
|
||||||
test || fail "Unable to execute 'test' on image."
|
--volume $(pwd)/media:/media \
|
||||||
|
${REGISTRY_URL}/${CONTAINER}:${TAG} \
|
||||||
|
test || fail "Unable to execute 'test' on image."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user