fa43164ba8
Docker provides a standard way of installing software. This is particularly useful with software that requires fairly complex dependencies, like Anki. The Dockerfile added in this commit builds a Docker image with Anki. The Docker image is based on `python:3.8`, which is based on a Debian Buster image. This Docker image can be useful to end users, because it can be installed on any system that has Docker (e.g., Windows, macOS, Linux), and it is also useful to developers who might not have -- or want to install -- the dependencies that Anki requires at compile time. To build the image, run `docker build --tag anki .` in the project root directory. To run the image with a GUI (on Unix-like systems), run ``` docker run --rm -it --env "DISPLAY=$DISPLAY" --volume /tmp/.X11-unix:/tmp/.X11-unix anki ``` One may also mount a user's Anki directory into the container and run the container as the current user. One may also run with Singularity (which typically has more transparent support for GUI applications and behaving as the current user) by first building the Docker image as above and then converting to Singularity Image Format (SIF) with ``` sudo singularity build anki.sif docker-daemon://anki:latest ``` Run the Singularity image with ``` singularity run anki.sif ``` |
||
---|---|---|
.github | ||
meta | ||
proto | ||
pylib | ||
qt | ||
rslib | ||
rspy | ||
scripts | ||
ts | ||
.gitattributes | ||
.gitignore | ||
CONTRIBUTORS | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
pkgkey.asc | ||
README.contributing | ||
README.development | ||
README.md | ||
run |
This repo contains all the code for the computer version of Anki.
If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/#/
For more information on building, please see README.development.
If you'd like to contribute code, please see README.contributing.