stacks/homelab/oscar/run

24 lines
457 B
Plaintext
Raw Normal View History

2023-12-28 10:07:43 -07:00
#! /bin/sh
2024-11-28 13:36:19 -07:00
2023-12-28 10:07:43 -07:00
image=git.woozle.org/neale/toolbox
2024-11-28 13:36:19 -07:00
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
2023-12-28 10:07:43 -07:00
podman pull $image
podman rm $me
podman run \
--name $me \
--hostname oscar \
--security-opt label=disable \
--privileged \
--network host \
--pid host \
--volume /srv/sys/oscar:/mnt/toolbox \
--volume /srv:/srv \
--volume /media:/media \
--volume /home:/home \
--volume /dev:/dev \
--volume /:/host \
$image