#!/bin/sh
if command -v podman > /dev/null; then
    RUNTIME=podman
elif command -v docker > /dev/null; then
    RUNTIME=docker
else
    echo "$0 needs podman or docker installed." >&2
    exit 2
fi
# Built by build-client-oci-image in GitLab CI
IMAGE=registry.salsa.debian.org/freexian-team/debusine/debusine-client:latest
exec $RUNTIME run -v ~/.config/debusine/client:/config -v .:/workdir -i $IMAGE "$@"
