big update
This commit is contained in:
parent
833e967aee
commit
72c73f9b18
30 changed files with 132 additions and 60 deletions
|
@ -2,15 +2,22 @@
|
|||
|
||||
declare -A aliases
|
||||
aliases=(
|
||||
[arch]=archlinux/archlinux:base
|
||||
[debian]=debian:12-slim
|
||||
[arch]=docker.io/archlinux/archlinux:base
|
||||
[debian]=docker.io/debian:12-slim
|
||||
[kaniko]=gcr.io/kaniko-project/executor:debug
|
||||
)
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
img="${aliases[$1]:-$1:latest}"; shift
|
||||
if [ -n "${aliases[$1]}" ]; then
|
||||
img="${aliases[$1]}"
|
||||
else
|
||||
img="docker.io/$1"
|
||||
[[ "$img" == *:* ]] || img+=:latest
|
||||
fi
|
||||
shift
|
||||
|
||||
set -x
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ "docker.io/$img" "$@"
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ "$img" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue