Skip to content

Commit

Permalink
add some documentation about arm
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 20, 2024
1 parent 8ac167d commit 81ac1dc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion doc/Grobid-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ It is then possible to select other Deep Learning models for other processing st

## CRF-only image

The process for retrieving and running the image is as follow:
The process for retrieving and running the image is as follows:

- Pull the image from docker HUB (check the [latest version number](https://hub.docker.com/r/lfoppiano/grobid/tags)):

Expand Down Expand Up @@ -115,6 +115,24 @@ Access the service:

Grobid web services are then available as described in the [service documentation](https://grobid.readthedocs.io/en/latest/Grobid-service/).

### ARM64

Since version 0.8.1 the CRF-only image is available for both x86_64 and arm64.
The `lfoppiano/grobid:{latest_grobid_version}` support both architectures by default.

To run it on arm64, use the following command:

```bash
docker run --ulimit core=0 --platform linux/amd64 -p 8070:8070 --name grobid lfoppiano/grobid:{latest_grobid_version}
```

As discussed [here](https://github.com/kermitt2/grobid/issues/1119#issuecomment-2362204879), it is mandatory to provide the parameter `--platform linux/amd64` to force the usage of amd64 architecture and avoid the raising of the rosetta error:

```
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
```

**NOTE**: The arm64 image has been tested only on `macOs` (not linux `arm64`).

## Configure using the yaml config file

Expand Down

0 comments on commit 81ac1dc

Please sign in to comment.