Add test containers
This commit is contained in:
parent
ca20c11962
commit
7d89f51eac
9 changed files with 169 additions and 2 deletions
16
containers/run.sh
Executable file
16
containers/run.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue