Remove Asciidoctor from Gitea

This commit is contained in:
Mo 2022-11-20 02:05:25 +01:00
parent 365e76d9bd
commit a46782c960
2 changed files with 4 additions and 20 deletions

View file

@ -2,27 +2,11 @@
set -l container_name gitea
set -l container_volumes_dir ~/volumes/$container_name
set -l gitea_data_dir $container_volumes_dir/data
mkdir -p $gitea_data_dir
buildah rm builder &>/dev/null
buildah from --pull --name builder docker.io/gitea/gitea:latest
buildah run builder -- apk --no-cache --update add asciidoctor
if systemctl --user is-enabled container-$container_name
systemctl --user disable --now container-$container_name
end
if podman image exists $container_name
podman rmi $container_name
end
buildah commit --rm builder $container_name
podman-default-create \
$container_name \
--network traefik \
-p 2222:22 \
-v $gitea_data_dir:/data:Z \
localhost/$container_name:latest
-v $container_volumes_dir/data:/data:Z \
--label "io.containers.autoupdate=registry" \
docker.io/gitea/gitea:latest

View file

@ -7,7 +7,7 @@ dnf install -y \
buildah \
git-lfs \
podman \
sqlite-devel # For compilation of git-webhook-client
sqlite-devel # For compilation of diesel-sqlite
loginctl enable-linger $user