Skip to content

Commit 7111ea8

Browse files
authored
Merge pull request #1510 from poldracklab/docker/tfpatch
FIX: Disable merging annex branches at run time
2 parents ef5f2eb + a221a29 commit 7111ea8

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,35 @@ jobs:
677677
- store_artifacts:
678678
path: /tmp/ds210
679679

680+
deploy_docker_patches:
681+
machine:
682+
image: circleci/classic:201711-01
683+
working_directory: /tmp/src/fmriprep
684+
steps:
685+
686+
- attach_workspace:
687+
at: /tmp
688+
- run:
689+
name: Load Docker image layer cache
690+
no_output_timeout: 30m
691+
command: |
692+
docker info
693+
set +o pipefail
694+
if [ -f /tmp/cache/docker.tar.gz ]; then
695+
sudo apt update && sudo apt -y install pigz
696+
pigz -d --stdout /tmp/cache/docker.tar.gz | docker load
697+
docker images
698+
fi
699+
- run:
700+
name: Deploy to Docker Hub
701+
no_output_timeout: 40m
702+
command: |
703+
if [[ -n "$DOCKER_PASS" ]]; then
704+
docker login -u $DOCKER_USER -p $DOCKER_PASS
705+
docker tag poldracklab/fmriprep poldracklab/fmriprep:${CIRCLE_BRANCH#docker/}
706+
docker push poldracklab/fmriprep:${CIRCLE_BRANCH#docker/}
707+
fi
708+
680709
deploy_docker:
681710
machine:
682711
image: circleci/classic:201711-01
@@ -747,6 +776,7 @@ workflows:
747776
ignore:
748777
- /docs?\/.*/
749778
- /tests?\/.*/
779+
- /docker\/.*/
750780
tags:
751781
only: /.*/
752782

@@ -758,6 +788,7 @@ workflows:
758788
- /ds005\/.*/
759789
- /ds054\/.*/
760790
- /ds210\/.*/
791+
- /docker\/.*/
761792
tags:
762793
only: /.*/
763794

@@ -771,6 +802,7 @@ workflows:
771802
- /ds005\/.*/
772803
- /ds054\/.*/
773804
- /ds210\/.*/
805+
- /docker\/.*/
774806
tags:
775807
only: /.*/
776808

@@ -782,6 +814,7 @@ workflows:
782814
ignore:
783815
- /docs?\/.*/
784816
- /tests?\/.*/
817+
- /docker\/.*/
785818
tags:
786819
only: /.*/
787820

@@ -796,6 +829,7 @@ workflows:
796829
- /ds005\/.*/
797830
- /ds054\/.*/
798831
- /ds210\/.*/
832+
- /docker\/.*/
799833
tags:
800834
only: /.*/
801835

@@ -810,6 +844,7 @@ workflows:
810844
- /tests?\/.*/
811845
- /ds054\/.*/
812846
- /ds210\/.*/
847+
- /docker\/.*/
813848
tags:
814849
only: /.*/
815850

@@ -824,6 +859,7 @@ workflows:
824859
- /tests?\/.*/
825860
- /ds005\/.*/
826861
- /ds210\/.*/
862+
- /docker\/.*/
827863
tags:
828864
only: /.*/
829865

@@ -839,9 +875,17 @@ workflows:
839875
- /tests?\/.*/
840876
- /ds005\/.*/
841877
- /ds054\/.*/
878+
- /docker\/.*/
842879
tags:
843880
only: /.*/
844881

882+
- deploy_docker_patches:
883+
requires:
884+
- build
885+
filters:
886+
branches:
887+
only: /docker\/.*/
888+
845889
- deploy_docker:
846890
requires:
847891
- build

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ RUN datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/* \
166166
$TEMPLATEFLOW_HOME/tpl-MNI152Lin/* \
167167
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/* \
168168
$TEMPLATEFLOW_HOME/tpl-NKI/*
169+
RUN git -C $TEMPLATEFLOW_HOME config annex.merge-annex-branches false && \
170+
git -C $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym config annex.merge-annex-branches false && \
171+
git -C $TEMPLATEFLOW_HOME/tpl-MNI152Lin config annex.merge-annex-branches false && \
172+
git -C $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs config annex.merge-annex-branches false && \
173+
git -C $TEMPLATEFLOW_HOME/tpl-NKI config annex.merge-annex-branches false
169174

170175
# Installing dev requirements (packages that are not in pypi)
171176
WORKDIR /src/

0 commit comments

Comments
 (0)