Skip to content

Commit

Permalink
generate dockerfiles in ci + rm dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubk committed Nov 15, 2017
1 parent 126831e commit a189fb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 451 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ jobs:
steps:
- checkout:
path: /home/circleci/nipype
- setup_remote_docker
- run:
name: Prune base Dockerfile in preparation for cache check
name: Generate and prune base Dockerfile in preparation for cache check
working_directory: /home/circleci/nipype/docker
command: |
mkdir -p /tmp/docker
ash ./generate_dockerfiles.sh -b
# Use the sha256 sum of the pruned Dockerfile as the cache key.
ash prune_dockerfile.sh Dockerfile.base > /tmp/docker/Dockerfile.base-pruned
- restore_cache:
Expand Down Expand Up @@ -43,9 +46,10 @@ jobs:
- attach_workspace:
at: /tmp
- run:
name: Get test dependencies
name: Get test dependencies and generate Dockerfiles
command: |
pip install --no-cache-dir codecov
make gen-dockerfiles
- run:
name: Modify Nipype version if necessary
working_directory: /home/circleci/nipype
Expand Down Expand Up @@ -171,10 +175,12 @@ jobs:
docker push nipype/nipype:py36
docker push nipype/nipype:py27
- run:
name: Prune base Dockerfile to update cache
name: Generate and prune base Dockerfile to update cache
working_directory: /home/circleci/nipype/docker
command: |
mkdir -p /tmp/docker/cache
ash ./generate_dockerfiles.sh -b
# Use the sha256 sum of the pruned Dockerfile as the cache key.
ash prune_dockerfile.sh Dockerfile.base > /tmp/docker/cache/Dockerfile.base-pruned
- save_cache:
Expand Down
233 changes: 0 additions & 233 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit a189fb5

Please sign in to comment.