Simple container which automates the installation of Antora, compilation of Couchbase documentation for a single repository and display via a web server.
Checkout your source code and then change into the top-level directory.
A typical execution of the container will look like the following, the container image is in docker hub so will just work without having to build the container manually:
$ docker run --rm -ti \
--publish 8080:80 \
--mount type=bind,source=${PWD},target=/src,readonly \
spjmurray/couchbase-antora-preview:latest
Removes the container once execution has terminated.
Allocate a pseudo terminal and allow input. This field is required to provide an interactive session.
Bind unprivileged port 8080 on the host system to port 80 on the container.
By default the static content will be generated with this port.
If you wish to use a different host port please specify the --port
argument to the container entry point.
This argument is required to expose the HTTP service.
Mounts your AsciiDoc repository in the container.
This must be a Git repository containing at least one Antora module.
Mount targets can be placed where you like and will be referred to by the --repo
argument of the container.
This is the name of the container image to use. Pre-built images are available on Docker Hub.
The host port mapping to the container web server.
This argument must be the same as that defined in the --publish
argument.
This argument is optional and defaults to 8080.
This argument is passed to the container entry point.
This specifies a repository to be added to the Antora playbook.
This argument is optional and will default to url=/src
.
The url
parameter is required and specifies the path to a mounted git repository or a reference to GitHub.
This must match the mount target specified in the --mount
argument.
The branches
parameter is optional and specifies which branches to use for document generation.
Branches are colon (:
) separated.
If not specified then the current branch is automatically detected from git.
The start_path
parameter is used to select the path within the repository to find the antora.yml
module configuration.
For further details please consult the Antora documentation.
If not specified then the Antora configuration is automatically detected by walking the git repository.
The first match is chosen.
Pull requests are welcomed, as are issues via GitHub.
Ensure the following commands are installed and in your path:
- make
- docker
Simply (for Richard Smedley), run the following:
$ make