-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_bidsapp.sh
27 lines (21 loc) · 943 Bytes
/
build_bidsapp.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
#! /bin/sh
CMP_BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo $CMP_BUILD_DATE
VERSION=v$(python get_version.py)
echo $VERSION
VCS_REF=$(git rev-parse --verify HEAD)
echo $VCS_REF
MAIN_DOCKER=sebastientourbier/multiscalebrainparcellator-ubuntu16.04:$VERSION
#MAIN_DOCKER="sebastientourbier/multiscalebrainparcellator-ubuntu16.04:latest"
echo $MAIN_DOCKER
cd environments
docker build --rm --build-arg BUILD_DATE=$CMP_BUILD_DATE \
--build-arg VERSION=$VERSION \
--build-arg VCS_REF=$VCS_REF \
-t sebastientourbier/multiscalebrainparcellator-ubuntu16.04:${VERSION} .
cd ..
docker build --no-cache --rm --build-arg BUILD_DATE=$CMP_BUILD_DATE \
--build-arg VERSION=$VERSION \
--build-arg VCS_REF=$VCS_REF \
--build-arg MAIN_DOCKER=$MAIN_DOCKER \
-t sebastientourbier/multiscalebrainparcellator:${VERSION} .