stacks/homelab/oscar/run

24 lines
457 B
Bash
Executable File

#! /bin/sh
image=git.woozle.org/neale/toolbox
[ -f upgrade ] && podman pull $image && rm upgrade
me=$(basename $(pwd))
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