Skip to content

Commit 865939d

Browse files
committed
Merge branch 'master' of github.com:gallantlab/headcase-pipeline
* 'master' of github.com:gallantlab/headcase-pipeline: DOC explain how to run docker with --user flag DOC how to run the pipeline on mac M1/M2/M3
2 parents ff70981 + d5ad20d commit 865939d

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,31 @@ docker run --rm caseforge:latest --help
6565
To let docker see the folder containing the head 3D model, you will have to bind the folder inside the container. For example, if the head model is in `/tmp/test-headcase/model.zip`, the following command should be run
6666

6767
```bash
68-
docker run -v /tmp:/tmp -t --rm caseforge:latest /tmp/test-headcase/model.zip /tmp/test-headcase/case.zip
68+
docker run --user=$(id -u):$(id -g) -v /tmp:/tmp -t --rm caseforge:latest \
69+
/tmp/test-headcase/model.zip \
70+
/tmp/test-headcase/case.zip
6971
```
7072

73+
Note that the flag `--user=$(id -u):$(id -g)` is optional, and it is used to ensure that the generated zip file will have the same file ownership and permissions as your user (rather than the root user).
74+
75+
76+
### Running with Docker on an ARM system (Mac M1/M2/M3)
77+
78+
To run the pipeline on an ARM system such as a Mac with M1/M2/M3 chip, you need to pass the `--platform linux/amd64` flag to all docker calls (see this [stackoverflow question](https://stackoverflow.com/questions/71040681/qemu-x86-64-could-not-open-lib64-ld-linux-x86-64-so-2-no-such-file-or-direc)).
79+
80+
To build the docker image, run
81+
82+
```bash
83+
docker build --platform linux/amd64 --tag caseforge .
84+
```
85+
86+
To run the pipeline, use
87+
88+
```bash
89+
docker run --platform linux/amd64 --rm caseforge:latest --help
90+
```
91+
92+
7193
## Manual installation
7294

7395
Python requirements are listed under `requirements.txt`, and can be installed with

0 commit comments

Comments
 (0)