forked from NHLBI-MR/icomoco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_images.sh
More file actions
executable file
·34 lines (23 loc) · 903 Bytes
/
build_images.sh
File metadata and controls
executable file
·34 lines (23 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
if [ $# -lt 2 ]
then
base_name=" gadgetronnhlbi/ubuntu_2004_cuda117_public_icomoco"
else
if [ $# -eq 2 ]
then
base_name=" $2"
echo ${base_name}
fi
fi
#base_name=" gadgetronnhlbi/ubuntu_2004_cuda117_public_icomoco"
dev_name="$base_name:$1_dev"
rt_name="$base_name:$1_rt"
echo "image prefix: $rt_name"
echo "image prefix: $dev_name"
docker build --build-arg BUILDKIT_INLINE_CACHE=0 --target gadgetron_cudabuild -t gadgetron_cudabuild -f ../gadgetron/Dockerfile ../gadgetron
docker build --build-arg BUILDKIT_INLINE_CACHE=0 --target gadgetron_nhlbicudabuild -t gadgetron_dev_nhlbi -f Dockerfile ../
docker tag gadgetron_dev_nhlbi ${dev_name}
#docker push ${dev_name}
docker build --build-arg BUILDKIT_INLINE_CACHE=0 --target gadgetron_nhlbi_rt_cuda -t gadgetron_rt_nhlbi -f Dockerfile ../
docker tag gadgetron_rt_nhlbi ${rt_name}
docker push ${rt_name}