Skip to content

Commit

Permalink
improve docker layer caching by creating partial yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Sep 20, 2024
1 parent 5a0be2c commit 9974e3f
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 31 deletions.
3 changes: 3 additions & 0 deletions src/base/setup_spatialdata_partial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setup:
- type: python
pypi: [spatialdata]
4 changes: 4 additions & 0 deletions src/base/setup_txsim_partial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setup:
- type: python
pypi: [squidpy, rasterio]
github: [theislab/txsim@dev]
5 changes: 2 additions & 3 deletions src/data_processors/process_dataset/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: [spatialdata]
__merge__:
- /src/base/setup_spatialdata_partial.yaml
- type: native

runners:
Expand Down
6 changes: 2 additions & 4 deletions src/datasets/processors/crop_region/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi:
- spatialdata
__merge__:
- /src/base/setup_spatialdata_partial.yaml

runners:
- type: executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
__merge__:
- /src/base/setup_txsim_partial.yaml
- /src/base/setup_spatialdata_partial.yaml
setup:
- type: python
pypi: [spatialdata, alphashape, descartes, squidpy, rasterio]
github: [theislab/txsim@dev]
pypi: [alphashape, descartes]
- type: native

runners:
Expand Down
6 changes: 2 additions & 4 deletions src/methods_cell_type_annotation/ssam/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
__merge__:
- /src/base/setup_txsim_partial.yaml
setup:
- type: python
github: [theislab/txsim@dev]
- type: python
pypi: [squidpy, rasterio]
- type: python
pypi: [planktonspace]
- type: native
Expand Down
7 changes: 3 additions & 4 deletions src/methods_count_aggregation/basic/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: [spatialdata, squidpy, rasterio]
github: [theislab/txsim@dev]
__merge__:
- /src/base/setup_txsim_partial.yaml
- /src/base/setup_spatialdata_partial.yaml
- type: native

runners:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
github: [theislab/txsim@dev]
__merge__:
- /src/base/setup_txsim_partial.yaml
- type: native

runners:
Expand Down
7 changes: 2 additions & 5 deletions src/methods_normalization/normalize_by_volume/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
github: [theislab/txsim@dev]
- type: python
pypi: [squidpy, rasterio]
__merge__:
- /src/base/setup_txsim_partial.yaml
- type: native

runners:
Expand Down
5 changes: 2 additions & 3 deletions src/methods_segmentation/custom/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: spatialdata
__merge__:
- /src/base/setup_spatialdata_partial.yaml
- type: native

runners:
Expand Down
5 changes: 2 additions & 3 deletions src/methods_transcript_assignment/basic/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ resources:
engines:
- type: docker
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: spatialdata
__merge__:
- /src/base/setup_spatialdata_partial.yaml
- type: native

runners:
Expand Down

0 comments on commit 9974e3f

Please sign in to comment.