This repository hosts the official Docker image for BeagleBoard docs using Antora. The Docker image is used to run Antora inside a container using the Docker client or Podman (or any client that adheres to the OCI standard).
This image is primarily designed to be used as a command in a box. You can use this image as a replacement for the antora command to execute a playbook. The benefit of using this image is that you don’t have to install Antora itself.
$ docker run -v $PWD:/antora:Z --rm -it ghcr.io/beagleboard/antora-docker:main antora-playbook.yml
Alternately, you can execute the podman run command:
$ podman run -v $PWD:/antora:Z --rm -it ghcr.io/beagleboard/antora-docker:main antora-playbook.yml
If you use the volume mapping $PWD:/antora:Z, you may notice that local paths reported by Antora don’t map back to your system.
That’s because, as far as Antora is concerned, /antora is the current working directory.
To remedy this problem, you need to map your current working directory into the container, then switch to it before running Antora.
To do so, use this volume mount instead:
-v $PWD:$PWD:Z -w $PWD
Notice the addition of the -w option.
This option tells Antora to switch from /antora to the directory you have mapped.
Now, when Antora reports local paths, they will match paths on your system.