stacks/homelab/sucker/run

20 lines
416 B
Plaintext
Raw Normal View History

2023-12-28 10:07:43 -07:00
#! /bin/sh
2024-11-28 13:36:19 -07:00
image=git.woozle.org/neale/media-sucker
[ -f upgrade ] && podman pull $image && rm upgrade
2023-12-28 10:07:43 -07:00
me=$(basename $(pwd))
podman rm $me
podman run \
--name=$me \
--device-cgroup-rule 'b 11:* rmw' \
--network homelab \
-v /dev:/hdev \
2024-11-28 13:34:56 -07:00
-v /srv/incoming/sucker:/incoming/sucker \
2023-12-28 10:07:43 -07:00
--cpu-shares 256 \
--user 911:19 \
2024-11-28 13:36:19 -07:00
$image \
2023-12-28 10:07:43 -07:00
-incoming /incoming/sucker \
-drive /hdev/sr0 /hdev/sr1 /hdev/sr2