Skip to content

Commit

Permalink
Merge pull request #8 from xwu2git/master
Browse files Browse the repository at this point in the history
alternative dockerfile naming convention
  • Loading branch information
xwu2git authored Apr 17, 2019
2 parents 11483a5 + 113d87d commit 7e16017
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ad-insertion/video-analytics-service/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DIR=$(dirname $(readlink -f "$0"))
DOCKER_REPO="https://raw.githubusercontent.com/OpenVisualCloud/Dockerfiles/v1.0/Xeon/ubuntu-18.04/dldt%2Bffmpeg"

base_name=xeon-ubuntu1804-dldt-ffmpeg-va
docker_file="$DIR/Dockerfile.4"
docker_file="$DIR/Dockerfile.4.ffmpeg"

echo "# "${base_name} > ${docker_file}
curl ${DOCKER_REPO}/Dockerfile >> ${docker_file}
Expand All @@ -15,7 +15,7 @@ curl ${DOCKER_REPO}/Dockerfile >> ${docker_file}
DOCKER_REPO="https://raw.githubusercontent.com/OpenVisualCloud/Dockerfiles/v1.0/Xeon/ubuntu-18.04/dldt%2Bgst"

base_name=xeon-ubuntu1804-dldt-gst-va
docker_file="$DIR/Dockerfile.2"
docker_file="$DIR/Dockerfile.2.gst"

echo "# "${base_name} > ${docker_file}
curl ${DOCKER_REPO}/Dockerfile>> ${docker_file}
4 changes: 2 additions & 2 deletions script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if test -z "${DIR}"; then
fi

# build image(s) in order (to satisfy dependencies)
for dep in .8 .7 .6 .5 .4 .3 .2 .1 ''; do
for dockerfile in `find "${DIR}" -name "Dockerfile*$dep" -print`; do
for dep in '.8.*' '.7.*' '.6.*' '.5.*' '.4.*' '.3.*' '.2.*' '.1.*' ''; do
for dockerfile in `find "${DIR}" -name "Dockerfile${dep}" -print`; do
image=$(head -n 1 "$dockerfile" | grep '# ' | cut -d' ' -f2)
if test -z "$image"; then image="$IMAGE"; fi

Expand Down

0 comments on commit 7e16017

Please sign in to comment.