-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_build.sh
67 lines (58 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/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_FSL=24.4.24
export TAG_FREESURFER=24.9.3
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.7.1
export TAG_AFNI=23.3.2
export TAG_TORTOISE=24.4.29
export TAG_TORTOISECUDA=24.4.29
export TAG_SYNB0=24.9.0
echo "Settings:"
echo "----------"
echo ""
echo "BUILD_TAG=${BUILD_TAG}"
echo "TAG_FSL=${TAG_FSL}"
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}"
echo "TAG_SYNB0=${TAG_SYNB0}"
do_build() {
INCLUDE_FSL=$1
THIS_TAG=${BUILD_TAG}
if [ "${INCLUDE_FSL}" == "no_fsl" ]; then
THIS_TAG=${BUILD_TAG}-nofsl
fi
DOCKER_BUILDKIT=1 \
BUILDKIT_PROGRESS=plain \
docker build -t \
pennlinc/qsiprep_build:${THIS_TAG} \
--build-arg TAG_FSL=${TAG_FSL} \
--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_SYNB0=${TAG_SYNB0} \
--build-arg TAG_TORTOISECUDA=${TAG_TORTOISECUDA} \
--build-arg FSL_BUILD=${INCLUDE_FSL} \
.
}