scripts/container.sh: support podman on macOS

The default user and group IDs on macOS are different from those used on Linux,
so add the expected ones explicitly.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2023-02-13 18:31:59 +01:00
parent 297cd5bc3f
commit ecf278d84b

View File

@ -12,7 +12,7 @@ TAG="gluon:${BRANCH:-latest}"
if [ "$(command -v podman)" ]
then
podman build -t "${TAG}" contrib/docker
podman run -it --rm --userns=keep-id --volume="$(pwd):/gluon" "${TAG}"
podman run -it --rm --userns=keep-id:uid=1000,gid=1000 --volume="$(pwd):/gluon" "${TAG}"
elif [ "$(command -v docker)" ]
then
docker build -t "${TAG}" contrib/docker