Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gallantlab/headcase-pipeline
Browse files Browse the repository at this point in the history
* '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
  • Loading branch information
mvdoc committed May 10, 2024
2 parents ff70981 + d5ad20d commit 865939d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,31 @@ docker run --rm caseforge:latest --help
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

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

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).


### Running with Docker on an ARM system (Mac M1/M2/M3)

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)).

To build the docker image, run

```bash
docker build --platform linux/amd64 --tag caseforge .
```

To run the pipeline, use

```bash
docker run --platform linux/amd64 --rm caseforge:latest --help
```


## Manual installation

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

0 comments on commit 865939d

Please sign in to comment.