Compare commits

...

2 commits

Author SHA1 Message Date
8a142fafe4 Add sqlite-devel 2022-10-23 18:09:30 +02:00
44de293650 Build on host 2022-10-23 18:09:22 +02:00
2 changed files with 13 additions and 4 deletions

View file

@ -8,7 +8,7 @@ buildah rm builder &>/dev/null
buildah from --pull --name builder registry.fedoraproject.org/fedora:latest
buildah run builder -- dnf upgrade -y
buildah run builder -- dnf install -y cargo git-lfs sqlite-devel npm
buildah run builder -- dnf install -y git-lfs sqlite-devel npm
buildah run builder -- dnf autoremove -y
buildah run builder -- dnf clean all
@ -18,8 +18,12 @@ buildah run builder -- tar -xzvf zola.tar.gz
buildah run builder -- rm zola.tar.gz
buildah run builder -- mv zola /usr/local/bin
buildah config --workingdir /volumes/src -e DATABASE_URL=/volumes/db/db.sqlite builder
buildah config --cmd 'cargo run -r' builder
buildah config \
--workingdir /volumes/src \
-e DATABASE_URL=/volumes/db/db.sqlite \
-e GWC_CONFIG_FILE=/volumes/src/config.json \
--cmd /volumes/src/target/release/git-webhook-client \
builder
if systemctl --user is-enabled container-$container_name
systemctl --user disable --now container-$container_name
@ -31,6 +35,10 @@ end
buildah commit --rm builder $container_name
cd $repo_dir
cargo update
cargo build -r
podman-default-create \
$container_name \
--network traefik \

View file

@ -6,7 +6,8 @@ set -l user_home /home/$user
dnf install -y \
buildah \
git-lfs \
podman
podman \
sqlite-devel # For compilation of git-webhook-client
loginctl enable-linger $user