can use podman for composer

This commit is contained in:
maxpozdeev 2025-01-19 22:30:50 +03:00
parent a4cc7f4e40
commit b7d9cf08a0

View file

@ -3,4 +3,9 @@
#dir="$( dirname -- "$( readlink -f -- "$0"; )"; )"
dir="$PWD"
docker run -it --rm -v "$dir:/app" composer $@
app=$(which podman)
if [ -z $app ]; then
app="docker"
fi
$app run -it --rm -v "$dir:/app" composer $@