1
0
Fork 1
mirror of https://example.com synced 2024-11-22 21:16:38 +09:00

dev: support Podman

This commit is contained in:
naskya 2024-01-05 08:03:42 +09:00
parent 8d044c617d
commit d7d9e3c323
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 10 additions and 7 deletions

View file

@ -5,16 +5,16 @@ set -eu
pull() {
say 'Pulling the image...'
run 'docker pull registry.code.naskya.net/naskya/firefish'
run "$1 pull registry.code.naskya.net/naskya/firefish"
}
if ! pull; then
if ! pull "$1"; then
say 'awawa, the image may not be compatible with your environment...'
say 'Gonnya try building the image locally!'
say 'It takes some time! Why not brew a cup of cofe?'
run "$(cat - << EOC
docker build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" .
$1 build --tag registry.code.naskya.net/naskya/firefish --build-arg VERSION="$(version)" .
EOC
)"
fi

View file

@ -74,13 +74,16 @@ for message in neko/messages/*; do
esac
done
say 'Do you use Docker?'
printf '[y/N] > '
say 'Do you use Docker or Podman?'
printf '(d: Docker, p: Podman, n: No) [d/p/N] > '
read -r yn
case "${yn}" in
[Yy]|[Yy][Ee][Ss])
./neko/update/docker.sh "$@"
[Dd])
./neko/update/docker.sh 'docker' "$@"
;;
[Pp])
./neko/update/docker.sh 'podman' "$@"
;;
*)
./neko/update/native.sh "$@"