15 lines
222 B
Bash
Executable file
15 lines
222 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -eu
|
|
suffix=$(printf '%s' "$1" | sed 's/.*\.//')
|
|
name="en-$suffix"
|
|
tag="en:$suffix"
|
|
shift
|
|
|
|
podman run \
|
|
--replace \
|
|
--name "$name" \
|
|
--publish 3008:80 \
|
|
--init \
|
|
"$@" \
|
|
"$tag"
|