From d4a04b0f027693c13c9e9110b1ee5ee69c23c87b Mon Sep 17 00:00:00 2001 From: mo8it <mo8it@proton.me> Date: Sat, 25 Mar 2023 20:53:26 +0100 Subject: [PATCH] Move to Oxiform --- containers/contact-form.fish | 18 ------------------ containers/yinghong_massage_oxiform.fish | 12 ++++++++++++ 2 files changed, 12 insertions(+), 18 deletions(-) delete mode 100755 containers/contact-form.fish create mode 100755 containers/yinghong_massage_oxiform.fish diff --git a/containers/contact-form.fish b/containers/contact-form.fish deleted file mode 100755 index ed2e577..0000000 --- a/containers/contact-form.fish +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env fish - -set -l container_name yinghong-massage-contact-form -set -l container_volumes_dir ~/volumes/$container_name -set -l repo_dir ~/code/yinghong-massage.de/contact-form - -cd $repo_dir -cargo build -r - -podman-default-create \ - $container_name \ - --network traefik \ - -v $repo_dir:/volumes/repo:Z,ro \ - -v $container_volumes_dir/logs:/volumes/logs:Z \ - -w /volumes/repo \ - -e CF_CONFIG_FILE=config.yaml \ - registry.fedoraproject.org/fedora:latest \ - target/release/contact-form diff --git a/containers/yinghong_massage_oxiform.fish b/containers/yinghong_massage_oxiform.fish new file mode 100755 index 0000000..6b7c80b --- /dev/null +++ b/containers/yinghong_massage_oxiform.fish @@ -0,0 +1,12 @@ +#!/usr/bin/env fish + +set -l container_name yinghong-massage-oxiform +set -l container_volumes_dir ~/volumes/$container_name + +buildah build --layers -t $container_name:latest ~/code/oxiform + +podman-default-create \ + $container_name \ + --network traefik \ + -v $container_volumes_dir:/volumes/data:Z \ + localhost/$container_name:latest