Go to file
Jakub Kaczmarzyk fa43164ba8 add Dockerfile
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
```
2020-09-02 15:35:18 -04:00
.github disable pyenv cache on Linux 2020-09-01 09:11:07 +10:00
meta bump version 2020-08-31 11:07:54 +10:00
proto rename some card+note fields in backend 2020-09-01 10:24:38 +10:00
pylib fix night mode on old graphs 2020-09-02 17:56:12 +10:00
qt ensure background override works in night mode 2020-09-01 12:20:45 +10:00
rslib rename some card+note fields in backend 2020-09-01 10:24:38 +10:00
rspy default to true in want_release_gil() 2020-09-01 10:24:38 +10:00
scripts vendor rename script 2020-04-14 19:49:07 +10:00
ts add a small default margin 2020-09-01 10:24:38 +10:00
.gitattributes
.gitignore save profile stats to file instead of generating report 2020-05-16 12:53:01 +10:00
CONTRIBUTORS add myself to CONTRIBUTORS 2020-08-28 16:48:45 -05:00
Dockerfile add Dockerfile 2020-09-02 15:35:18 -04:00
LICENSE vendor rename script 2020-04-14 19:49:07 +10:00
Makefile Fix make fix not working on a clean install 2020-08-21 22:15:14 -03:00
pkgkey.asc
README.contributing Revert "Merge pull request #729 from evandroforks/upload_rslib_artifacts" 2020-08-21 19:56:17 +10:00
README.development mention pypi 2020-08-03 15:31:22 +10:00
README.md drop alpha warning 2020-07-01 15:01:51 +10:00
run remove python version debugging from ./run 2020-04-20 11:21:27 +10:00

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.