-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_build.sh
54 lines (47 loc) · 1.43 KB
/
setup_build.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Set up the environment for the main build
BUILD_TAG=latest
if [[ -n "${CIRCLE_TAG}" ]]; then
BUILD_TAG="${CIRCLE_TAG}"
fi
export BUILD_TAG
# Versions of the components
export TAG_FREESURFER=23.3.0
export TAG_ANTS=24.4.24
export TAG_MRTRIX3=24.4.24
export TAG_3TISSUE=24.4.24
export TAG_DSISTUDIO=24.7.4
export TAG_MICROMAMBA=24.10.1
export TAG_AFNI=23.3.2
export TAG_TORTOISE=24.4.29
export TAG_TORTOISECUDA=24.4.29
echo "Settings:"
echo "----------"
echo ""
echo "BUILD_TAG=${BUILD_TAG}"
echo "TAG_FREESURFER=${TAG_FREESURFER}"
echo "TAG_ANTS=${TAG_ANTS}"
echo "TAG_MRTRIX3=${TAG_MRTRIX3}"
echo "TAG_3TISSUE=${TAG_3TISSUE}"
echo "TAG_DSISTUDIO=${TAG_DSISTUDIO}"
echo "TAG_MICROMAMBA=${TAG_MICROMAMBA}"
echo "TAG_AFNI=${TAG_AFNI}"
echo "TAG_TORTOISE=${TAG_TORTOISE}"
echo "TAG_TORTOISECUDA=${TAG_TORTOISECUDA}"
do_build() {
THIS_TAG=${BUILD_TAG}
DOCKER_BUILDKIT=1 \
BUILDKIT_PROGRESS=plain \
docker build -t \
pennlinc/qsirecon_build:${THIS_TAG} \
--build-arg TAG_FREESURFER=${TAG_FREESURFER} \
--build-arg TAG_ANTS=${TAG_ANTS} \
--build-arg TAG_MRTRIX3=${TAG_MRTRIX3} \
--build-arg TAG_3TISSUE=${TAG_3TISSUE} \
--build-arg TAG_DSISTUDIO=${TAG_DSISTUDIO} \
--build-arg TAG_MICROMAMBA=${TAG_MICROMAMBA} \
--build-arg TAG_AFNI=${TAG_AFNI} \
--build-arg TAG_TORTOISE=${TAG_TORTOISE} \
--build-arg TAG_TORTOISECUDA=${TAG_TORTOISECUDA} \
.
}