Skip to content

Commit

Permalink
Merge pull request #974 from nipreps/maint/refactor-dockerfile
Browse files Browse the repository at this point in the history
MAINT: Refactor ``Dockerfile`` using new miniconda image
  • Loading branch information
oesteban authored Mar 11, 2022
2 parents 16deec2 + 203df85 commit f308b36
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 211 deletions.
38 changes: 19 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
fi
- restore_cache:
keys:
- build-v1-{{ .Branch }}-{{ .Revision }}
- build-v1--{{ .Revision }}
- build-v1-{{ .Branch }}-
- build-v1-master-
- build-v1-
- built-v3-{{ .Branch }}-{{ .Revision }}
- built-v3--{{ .Revision }}
- built-v3-{{ .Branch }}-
- built-v3-master-
- built-v3-
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
docker exec -it registry /bin/registry garbage-collect --delete-untagged \
/etc/docker/registry/config.yml
- save_cache:
key: build-v1-{{ .Branch }}-{{ .Revision }}
key: built-v3-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
fi
- restore_cache:
keys:
- build-v1-{{ .Branch }}-{{ .Revision }}
- built-v3-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
name: Run MRIQC tests
no_output_timeout: 2h
command: |
docker run -ti --rm=false \
docker run --rm -ti \
-v $PWD:/scratch --entrypoint="pytest" -w /src/mriqc \
nipreps/mriqc:latest mriqc \
--junitxml=/scratch/tests.xml \
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
fi
- restore_cache:
keys:
- build-v1-{{ .Branch }}-{{ .Revision }}
- built-v3-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
command: |
mkdir -p /tmp/t1w/work /tmp/t1w/derivatives
# Run MRIQC
docker run -u $( id -u ) --rm=false -ti \
docker run -u $( id -u ) --rm -ti \
-v /tmp/data/${TEST_DATA_NAME}:/data:ro \
-v /tmp/t1w:/scratch -w /scratch \
nipreps/mriqc:latest \
Expand All @@ -386,7 +386,7 @@ jobs:
name: Run group-level on T1w images
no_output_timeout: 2h
command: |
docker run -u $( id -u ) --rm=false -ti \
docker run -u $( id -u ) --rm -ti \
-v /tmp/data/${TEST_DATA_NAME}:/data:ro \
-v /tmp/t1w:/scratch -w /scratch \
nipreps/mriqc:latest \
Expand Down Expand Up @@ -415,15 +415,15 @@ jobs:
- run:
name: Checking changes on IQMs
command: |
docker run --rm=false -ti -v $PWD:/scratch -w /scratch \
docker run --rm -ti -v $PWD:/scratch -w /scratch \
--entrypoint="dfcheck" nipreps/mriqc:latest \
-i /scratch/derivatives/group_T1w.tsv \
-r /src/mriqc/mriqc/data/testdata/group_T1w.tsv
- run:
name: WebAPI - Check records
command: |
docker run --rm=false -ti \
docker run --rm -ti \
--entrypoint="/opt/conda/bin/mriqcwebapi_test" \
nipreps/mriqc:latest \
T1w 4 \
Expand Down Expand Up @@ -459,7 +459,7 @@ jobs:
fi
- restore_cache:
keys:
- build-v1-{{ .Branch }}-{{ .Revision }}
- built-v3-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down Expand Up @@ -508,7 +508,7 @@ jobs:
command: |
mkdir -p /tmp/bold/work /tmp/bold/derivatives
# Run MRIQC
docker run -u $( id -u ) --rm=false -ti -v /tmp/data/${TEST_DATA_NAME}:/data:ro \
docker run -u $( id -u ) --rm -ti -v /tmp/data/${TEST_DATA_NAME}:/data:ro \
-v $PWD:/scratch -w /scratch \
nipreps/mriqc:latest \
/data derivatives/ participant \
Expand All @@ -525,7 +525,7 @@ jobs:
name: Run group-level on BOLD images
no_output_timeout: 2h
command: |
docker run -u $( id -u ) --rm=false -ti -v /tmp/data/${TEST_DATA_NAME}:/data:ro \
docker run -u $( id -u ) --rm -ti -v /tmp/data/${TEST_DATA_NAME}:/data:ro \
-v $PWD:/scratch -w /scratch \
nipreps/mriqc:latest \
/data derivatives/ group \
Expand Down Expand Up @@ -553,15 +553,15 @@ jobs:
- run:
name: Checking changes on IQMs
command: |
docker run -u $( id -u ) --rm=false -ti -v $PWD:/scratch -w /scratch \
docker run -u $( id -u ) --rm -ti -v $PWD:/scratch -w /scratch \
--entrypoint="dfcheck" nipreps/mriqc:latest \
-i /scratch/derivatives/group_bold.tsv \
-r /src/mriqc/mriqc/data/testdata/group_bold.tsv
- run:
name: WebAPI - Check records
command: |
docker run --rm=false -ti \
docker run --rm -ti \
--entrypoint="/opt/conda/bin/mriqcwebapi_test" \
nipreps/mriqc:latest \
bold 9 \
Expand Down Expand Up @@ -689,7 +689,7 @@ jobs:
steps:
- restore_cache:
keys:
- build-v1-{{ .Branch }}-{{ .Revision }}
- built-v3-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/docker
- /tmp/images
Expand Down
Loading

0 comments on commit f308b36

Please sign in to comment.