feat: bookmarks
This commit is contained in:
parent
ddd00d7844
commit
98ec0130fd
19 changed files with 223 additions and 90 deletions
|
@ -1,9 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
|
||||
declare -A aliases
|
||||
aliases=(
|
||||
function dkr() {
|
||||
local ep="$1"; shift
|
||||
|
||||
(set -x
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ --entrypoint "$ep" \
|
||||
"$img" "$@"
|
||||
)
|
||||
}
|
||||
|
||||
declare -A aliases=(
|
||||
[arch]=docker.io/archlinux/archlinux:base
|
||||
[debian]=docker.io/debian:12-slim
|
||||
[flutter]=git.gmoker.com/icing/flutter:main
|
||||
[kaniko]=gcr.io/kaniko-project/executor:debug
|
||||
)
|
||||
|
||||
|
@ -19,5 +28,7 @@ else
|
|||
fi
|
||||
shift
|
||||
|
||||
set -x
|
||||
podman run --rm -it -v "$PWD:/mnt/" -w /mnt/ "$img" "$@"
|
||||
dkr bash "$@"
|
||||
if [ "$?" = 127 ]; then
|
||||
dkr sh "$@"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue