stacks/homelab/picoshare/run

15 lines
348 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/picoshare
[ -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 \
--network homelab \
--env PS_SHARED_SECRET_FILE=/run/secrets/picoshare \
--volume /srv/sys/picoshare:/data \
--volume /srv/secrets/picoshare:/run/secrets/picoshare \
2024-11-28 13:36:19 -07:00
$image