-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker_build_run.sh
executable file
·24 lines (19 loc) · 787 Bytes
/
docker_build_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")" || exit 1
test_dir="$(realpath $(dirname $"0"))/test_videos"
mkdir -p tmp
mkdir -p reports
tmp="$(realpath $(dirname $"0"))/tmp"
reports="$(realpath $(dirname $"0"))/reports"
if ! [[ -d p1204_3/bitstream_mode3_videoparser ]]; then
git clone https://github.com/Telecommunication-Telemedia-Assessment/bitstream_mode3_videoparser.git p1204_3/bitstream_mode3_videoparser
else
git -C p1204_3/bitstream_mode3_videoparser fetch --all
git -C p1204_3/bitstream_mode3_videoparser reset --hard origin/master
fi
docker build --tag p1204-test .
docker run --rm -i -v ${test_dir}:/test_videos \
-v ${tmp}:/tmp \
-v ${reports}:/reports \
-t p1204-test --tmp "/tmp" --result_folder "/reports" /test_videos/test_video_h264.mkv