forked from naskya/firefish
dev: support Podman
This commit is contained in:
parent
8d044c617d
commit
d7d9e3c323
2 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
11
update.sh
11
update.sh
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue