From cdbe3466975ff13a84f78bc8165b5f7e7108df2c Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 30 Sep 2024 02:22:31 +0200 Subject: [PATCH] podman --- dotfiles/.config/containers/registries.conf | 2 ++ dotfiles/.config/containers/storage.conf | 4 ++++ .../containers/systemd/forgejo.container | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 dotfiles/.config/containers/registries.conf create mode 100644 dotfiles/.config/containers/storage.conf create mode 100644 dotfiles/.config/containers/systemd/forgejo.container diff --git a/dotfiles/.config/containers/registries.conf b/dotfiles/.config/containers/registries.conf new file mode 100644 index 0000000..404f31d --- /dev/null +++ b/dotfiles/.config/containers/registries.conf @@ -0,0 +1,2 @@ +[registries.search] +registries = ['quay.io', 'ghcr.io', 'registry.fedoraproject.org', 'registry.centos.org', 'docker.io'] diff --git a/dotfiles/.config/containers/storage.conf b/dotfiles/.config/containers/storage.conf new file mode 100644 index 0000000..3fc7f79 --- /dev/null +++ b/dotfiles/.config/containers/storage.conf @@ -0,0 +1,4 @@ +[storage] + driver = "overlay" + runroot = "/run/user/1000" + graphroot = "/home/vladan/.local/share/containers/storage" diff --git a/dotfiles/.config/containers/systemd/forgejo.container b/dotfiles/.config/containers/systemd/forgejo.container new file mode 100644 index 0000000..2f1d2c4 --- /dev/null +++ b/dotfiles/.config/containers/systemd/forgejo.container @@ -0,0 +1,18 @@ +[Unit] +Description=Forgejo: Beyond coding. We forge. +After=network-online.target +Wants=network-online.target + +[Service] +TimeoutStartSec=60 + +[Container] +ContainerName=forgejo +Image=codeberg.org/forgejo/forgejo:1.21.5-0 +Volume=/tmp/forgejo:/data:z +PublishPort=3000:3000 +PublishPort=3022:22 + +[Install] +# Start by default on boot +WantedBy=multi-user.target default.target