From c75a7f87f3a0738722443ddf0096c5a00eb185bb Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Fri, 8 Dec 2023 10:27:50 +0000 Subject: [PATCH] Support Podman --- README.md | 15 +++++++++++++-- aiidalab_launch/profile.py | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68a24af..dcc2f50 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ AiiDAlab Launch makes it easy to run AiiDAlab on your own workstation or laptop. To use AiiDAlab launch you will have to -1. [Install Docker on your workstation or laptop.](https://docs.docker.com/get-docker/) +1. [Install Docker on your workstation or laptop.](https://docs.docker.com/get-docker/) (you can also use Podman, [see below](README.md#using-podman)) 2. Install AiiDAlab launch with [pipx](https://pypa.github.io/pipx/installation/) (**recommended**): ```console @@ -70,6 +70,17 @@ Please see [here](ssh-forward.md) for instructions on how to run AiiDAlab on a r This package follows the Python compatibility and deprecation schedule specified by [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html). +### Using Podman instead of Docker + +You should be able to use Podman as as a drop-in replacement for Docker, with just a little extra setup. The following was tested on Fedora 39 which comes with Podman pre-installed. + +```console +systemctl --user enable podman.socket +systemctl --user start podman.socket +systemctl --user status podman.socket +export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock +``` + ## Development ### Setting up a development environment @@ -162,7 +173,7 @@ SOFTWARE. ## Acknowledgements This work is supported by the -[MARVEL National Centre for Competency in Research]() funded by the [Swiss National Science Foundation](), +[MARVEL National Centre for Competency in Research]() funded by the [Swiss National Science Foundation](), the MARKETPLACE project funded by [Horizon 2020](https://ec.europa.eu/programmes/horizon2020/) under the H2020-NMBP-25-2017 call (Grant No. 760173), as well as by the [MaX European Centre of Excellence]() funded by the Horizon 2020 EINFRA-5 program, diff --git a/aiidalab_launch/profile.py b/aiidalab_launch/profile.py index b555258..667d5a0 100644 --- a/aiidalab_launch/profile.py +++ b/aiidalab_launch/profile.py @@ -31,7 +31,7 @@ def _default_port() -> int: # explicit function required to enable test patchin return DEFAULT_PORT -DEFAULT_IMAGE = "aiidalab/full-stack:latest" +DEFAULT_IMAGE = "docker.io/aiidalab/full-stack:latest" def _valid_volume_name(source: str) -> None: