mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49: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
|
||||
handle_data
|
||||
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
sub_images=`echo "$@" | sed 's/Dockerfile-//'`
|
||||
else
|
||||
sub_images=`ls -1 Dockerfile-core* | sed 's/Dockerfile-//'`
|
||||
sub_images="$sub_images `ls -1 Dockerfile-* | sed 's/Dockerfile-//'`"
|
||||
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
|
||||
docker build --cache-from=quratorspk/ocrd-galley-$sub_image -t quratorspk/ocrd-galley-$sub_image -f Dockerfile-$sub_image .
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue