Move to Oxiform

This commit is contained in:
Mo 2023-03-25 20:53:26 +01:00
parent ef0f30568c
commit d4a04b0f02
2 changed files with 12 additions and 18 deletions

View file

@ -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

View file

@ -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