Skip to content

Commit a189fb5

Browse files
author
jakubk
committed
generate dockerfiles in ci + rm dockerfiles
1 parent 126831e commit a189fb5

File tree

3 files changed

+9
-451
lines changed

3 files changed

+9
-451
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ jobs:
77
steps:
88
- checkout:
99
path: /home/circleci/nipype
10+
- setup_remote_docker
1011
- run:
11-
name: Prune base Dockerfile in preparation for cache check
12+
name: Generate and prune base Dockerfile in preparation for cache check
1213
working_directory: /home/circleci/nipype/docker
1314
command: |
1415
mkdir -p /tmp/docker
16+
ash ./generate_dockerfiles.sh -b
17+
1518
# Use the sha256 sum of the pruned Dockerfile as the cache key.
1619
ash prune_dockerfile.sh Dockerfile.base > /tmp/docker/Dockerfile.base-pruned
1720
- restore_cache:
@@ -43,9 +46,10 @@ jobs:
4346
- attach_workspace:
4447
at: /tmp
4548
- run:
46-
name: Get test dependencies
49+
name: Get test dependencies and generate Dockerfiles
4750
command: |
4851
pip install --no-cache-dir codecov
52+
make gen-dockerfiles
4953
- run:
5054
name: Modify Nipype version if necessary
5155
working_directory: /home/circleci/nipype
@@ -171,10 +175,12 @@ jobs:
171175
docker push nipype/nipype:py36
172176
docker push nipype/nipype:py27
173177
- run:
174-
name: Prune base Dockerfile to update cache
178+
name: Generate and prune base Dockerfile to update cache
175179
working_directory: /home/circleci/nipype/docker
176180
command: |
177181
mkdir -p /tmp/docker/cache
182+
ash ./generate_dockerfiles.sh -b
183+
178184
# Use the sha256 sum of the pruned Dockerfile as the cache key.
179185
ash prune_dockerfile.sh Dockerfile.base > /tmp/docker/cache/Dockerfile.base-pruned
180186
- save_cache:

Dockerfile

Lines changed: 0 additions & 233 deletions
This file was deleted.

0 commit comments

Comments
 (0)