mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 22:59:53 +02:00
✨ Update base images if we build a core image
This commit is contained in:
parent
4161e3f680
commit
b413cfe469
1 changed files with 9 additions and 0 deletions
9
build
9
build
|
@ -28,12 +28,21 @@ get_from_web() {
|
||||||
. $self_dir/qurator_data_lib.sh
|
. $self_dir/qurator_data_lib.sh
|
||||||
handle_data
|
handle_data
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
sub_images=`echo "$@" | sed 's/Dockerfile-//'`
|
sub_images=`echo "$@" | sed 's/Dockerfile-//'`
|
||||||
else
|
else
|
||||||
sub_images=`ls -1 Dockerfile-core* | sed 's/Dockerfile-//'`
|
sub_images=`ls -1 Dockerfile-core* | sed 's/Dockerfile-//'`
|
||||||
sub_images="$sub_images `ls -1 Dockerfile-* | sed 's/Dockerfile-//'`"
|
sub_images="$sub_images `ls -1 Dockerfile-* | sed 's/Dockerfile-//'`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Update base images if we build a core image
|
||||||
|
if echo "$sub_images" | grep -q core; then
|
||||||
|
docker pull ubuntu:18.04
|
||||||
|
docker pull nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
|
||||||
|
docker pull nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04
|
||||||
|
fi
|
||||||
|
|
||||||
for sub_image in $sub_images; do
|
for sub_image in $sub_images; do
|
||||||
docker build --cache-from=quratorspk/ocrd-galley-$sub_image -t quratorspk/ocrd-galley-$sub_image -f Dockerfile-$sub_image .
|
docker build --cache-from=quratorspk/ocrd-galley-$sub_image -t quratorspk/ocrd-galley-$sub_image -f Dockerfile-$sub_image .
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue