Commit 4ada83e9 authored by nimrod's avatar nimrod
Browse files

youtube-dl wrapper script using containers.

parent fc63a8ef
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu

if [ "${1:-}" = "-u" ]
then
    exec podman image pull registry.shore.co.il/youtube-dl
fi

exec podman run \
    -it \
    --rm \
    --userns keep-id \
    -w "$PWD" \
    -v "$PWD:$PWD" \
    -v "$HOME/.cache:/tmp/.cache" \
    registry.shore.co.il/youtube-dl \
    "$@"