Skip to content

Commit 9cb71ee

Browse files
fixing docker image
1 parent fd47a45 commit 9cb71ee

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/Dockerfile.base

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ WORKDIR ${HOME}/app
2222

2323
# Copy pipeline from build context (reflects local changes; submodules in external/)
2424
COPY --chown=user:user . champollion_pipeline/
25+
# cortical_tiles/logs.py uses gitpython to record the repo HEAD commit SHA.
26+
# The submodule .git pointer is broken without the parent .git/modules/ tree.
27+
# Replace it with a minimal stub git repo so gitpython finds a valid HEAD.
28+
RUN rm -f champollion_pipeline/external/cortical_tiles/.git \
29+
&& git -C champollion_pipeline/external/cortical_tiles init \
30+
&& git -C champollion_pipeline/external/cortical_tiles \
31+
-c user.email="build@docker" -c user.name="Docker" \
32+
commit --allow-empty -m "Docker build snapshot"
2533
# Clone champollion_utils (separate external repository)
2634
RUN git clone --depth 1 -b master https://github.com/neurospin/champollion_utils.git
2735

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ pixi run python3 src/run_cortical_tiles.py \
106106
--path_sk_with_hull "t1mri/default_acquisition/default_analysis/segmentation"
107107
```
108108

109-
The `input` argument is the directory containing subject folders (e.g., morphologist's output subjects directory). The `--path_to_graph` supports wildcards (`*`) for variable path segments, e.g.:
109+
- **`input`** — directory containing one folder per subject (e.g., morphologist's `subjects/` output). This path may be read-only (e.g., an NFS database): the script never writes to it.
110+
- **`output`** — derivatives parent directory. The script writes `pipeline_loop_2mm.json` here and produces sulcal region crops at `{output}/cortical_tiles-2026/crops/2mm/`.
111+
112+
The `--path_to_graph` supports wildcards (`*`) for variable path segments, e.g.:
110113

111114
```bash
112115
--path_to_graph "t1mri/default_acquisition/*/folds/3.1"

0 commit comments

Comments
 (0)