This Dockerfile sets up a tskit
development environment
based on Fedora Linux 37.
This is an opinionated choice -- Fedora's packages are more
up-to-date than Ubuntu.
The image installs all required system dependencies plus a few others for convenience.
podman build . -t tskit_dev
If you get errors such as:
cannot apply additional memory protection after relocation: Permission denied
Execute:
sudo setenforce 0
Then proceed with podman build ...
.
distrobox create -i localhost/tskit_dev
distrobox enter tskit_dev
Clone tskit, build a virtual environment, install Python dependencies, and setup pre-commit:
sh /bootstrap/bootstrap_devel.sh
source venv/bin/activate