Add test containers

This commit is contained in:
Juno Takano 2026-03-30 11:40:04 -03:00
commit 7d89f51eac
9 changed files with 169 additions and 2 deletions

16
containers/run.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
suffix=$(printf '%s' "$1" | sed 's/.*\.//')
binary=tori
name="$binary-$suffix"
tag="$binary:$suffix"
shift
podman run \
--replace \
--name "$name" \
--publish 3008:80 \
--init \
"$@" \
"$tag"