Skip to content

Commit

Permalink
Bind mount this entire repo as /opt, avoid bind mounting /outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Aug 11, 2023
1 parent 0738e40 commit f2fe8a2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,25 @@ analysis-singularity:
mkdir -p $(SCRATCH_PATH)
$(SING_BINARY) run \
-e --no-home \
-B ${PWD}:/opt \
-B ${PWD}/inputs/opfvta_bidsdata:/usr/share/opfvta_bidsdata \
-B ${PWD}/inputs/mouse-brain-templates/mouse-brain-templates:/usr/share/mouse_brain_atlases \
-B ${PWD}/outputs/:/outputs \
-B $(SCRATCH_PATH):$(HOME)/.scratch/ \
-B ${PWD}/code/:/opt/src/ \
-B ${PWD}/code/empty:/opfvta/ \
--pwd /opt/src/ \
--pwd /opt/code \
code/images/opfvta-singularity/opfvta.sing \
./produce-analysis.sh

analysis-oci:
$(OCI_BINARY) run \
-it \
--rm \
-v ${PWD}:/opt \
-v ${PWD}/inputs/opfvta_bidsdata:/usr/share/opfvta_bidsdata \
-v ${PWD}/inputs/mouse-brain-templates/mouse-brain-templates:/usr/share/mouse_brain_atlases \
-v ${PWD}/outputs/:/outputs \
-v ${SCRATCH_PATH}:/root/.scratch \
-v ${PWD}/code/:/opt/src/ \
-v ${PWD}/code/empty:/opfvta/ \
--workdir /opt/src \
--workdir /opt/code \
${FQDN_IMAGE} \
./produce-analysis.sh

Expand Down

0 comments on commit f2fe8a2

Please sign in to comment.