Docker image
There is a docker image for running rich-codex, available on GitHub:
- The label
latestwill pull the most recent release - The label
mainwill pull the development version - Releases will have their own specific labels.
Warning
If you're trying to run commands, they will likely not be available in the container!
So this image is best used for code snippets or common linux tools.
Alternatively, you can build your own docker image using this as a base, with additional dependencies installed: FROM ghcr.io/ewels/rich-codex:latest
To run, a typical command would be:
- The
-iflag enables stdin so that you can confirm running commands (alternatively, use--no-confirmat the end) - The
-vargument tells Docker to bind your current working directory (pwd) to the same path inside the container, so that files created there will be saved to your local file system outside of the container. -wsets the working directory in the container to this path, so that it's the same as your working directory outside of the container.-usets your local user account as the user inside the container, so that any files created have the correct ownership permissions.
You can then pass environment variables with the -e flag to customise behaviour. See the usage instructions below for the available environment variables.