add upgrade feature
This commit is contained in:
parent
bb058597e8
commit
151e7944bc
|
@ -2,10 +2,10 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
me=$(basename $(pwd))
|
||||
image=jamesits/ripe-atlas:latest
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
#podman pull $image
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
--name $me \
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
image=quay.io/oauth2-proxy/oauth2-proxy
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
|
@ -9,5 +12,5 @@ podman run \
|
|||
--network homelab \
|
||||
--name auth \
|
||||
--volume /srv/secrets/oauth2-proxy.cfg:/etc/oauth2-proxy.cfg:ro \
|
||||
quay.io/oauth2-proxy/oauth2-proxy \
|
||||
$image \
|
||||
--config=/etc/oauth2-proxy.cfg
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
exec 2>&1
|
||||
|
||||
image=git.woozle.org/neale/big-builder:1.1
|
||||
me=$(basename $(pwd))
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman pull $image
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--volume ./config.yaml:/app/config.yaml:ro \
|
||||
--volume /srv/secrets/builder-betty/.runner:/app/.runner \
|
||||
$image -c config.yaml daemon
|
||||
$image \
|
||||
-c config.yaml daemon
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
image=caddy:2-alpine
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
|
@ -13,4 +16,4 @@ podman run \
|
|||
--volume /srv/sys/caddy:/data/caddy \
|
||||
--volume ./Caddyfile:/etc/caddy/Caddyfile:ro \
|
||||
--add-host host.lan:192.168.86.2 \
|
||||
caddy:2-alpine
|
||||
$image
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=coredns/coredns
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--network host \
|
||||
--mount type=bind,src=$(pwd)/Corefile,dst=/home/nonroot/Corefile,readonly=true \
|
||||
coredns/coredns
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=qmcgaw/ddns-updater
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -6,4 +10,4 @@ podman run \
|
|||
--network homelab \
|
||||
--dns 1.1.1.1 \
|
||||
--volume /srv/sys/ddns-updater:/updater/data \
|
||||
qmcgaw/ddns-updater
|
||||
$image
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=ravermeister/geneweb
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--network homelab \
|
||||
--volume /srv/sys/geneweb:/usr/local/share/geneweb/share/data \
|
||||
ravermeister/geneweb
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=codeberg.org/forgejo/forgejo:1.21.3-0-rootless
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -9,4 +13,4 @@ podman run \
|
|||
--volume /etc/localtime:/etc/localtime:ro \
|
||||
--volume /srv/sys/gitea/app.ini:/etc/gitea/app.ini \
|
||||
--volume /srv/sys/gitea:/data \
|
||||
codeberg.org/forgejo/forgejo:1.21.3-0-rootless
|
||||
$image
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
image=ghcr.io/ergochat/ergo
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
|
||||
podman rm -f $me
|
||||
|
@ -11,4 +14,4 @@ podman run \
|
|||
--network homelab \
|
||||
--volume /srv/sys/ircd:/ircd/ \
|
||||
--volume /srv/sys/caddy/certificates/acme-v02.api.letsencrypt.org-directory/irc.woozle.org/:/ircd/certs:ro \
|
||||
ghcr.io/ergochat/ergo
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/lidarr
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -7,4 +11,4 @@ podman run \
|
|||
--volume /srv/sys/lidarr:/config \
|
||||
--volume /srv/media/music:/srv/media/music \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/lidarr
|
||||
$image
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#! /bin/sh
|
||||
|
||||
exec 2>&1
|
||||
|
||||
image=nextcloud
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--network homelab \
|
||||
--memory 2g \
|
||||
--volume /srv/sys/nextcloud:/var/www/html \
|
||||
--volume /srv/storage:/srv/storage \
|
||||
--volume /srv/media:/srv/media \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
--volume /srv/sys/nextcloud/bin/ffmpeg:/usr/local/bin/ffmpeg:ro \
|
||||
$image
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/nzbget
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -6,4 +10,4 @@ podman run \
|
|||
--network homelab \
|
||||
--volume /srv/sys/nzbget:/config \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/nzbget
|
||||
$image
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#! /bin/sh
|
||||
me=$(basename $(pwd))
|
||||
|
||||
image=git.woozle.org/neale/toolbox
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
|
||||
podman pull $image
|
||||
podman rm $me
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=bpatrik/pigallery2:latest
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
|
@ -9,4 +13,4 @@ podman run \
|
|||
--volume /srv/sys/pigallery2/cache:/app/data/cache \
|
||||
--volume /srv/storage/fam/Photos:/photos/fam:ro \
|
||||
--volume /home/ginnie/Photos:/photos/ginnie:ro \
|
||||
bpatrik/pigallery2:latest
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=git.woozle.org/neale/picoshare
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -7,4 +11,4 @@ podman run \
|
|||
--env PS_SHARED_SECRET_FILE=/run/secrets/picoshare \
|
||||
--volume /srv/sys/picoshare:/data \
|
||||
--volume /srv/secrets/picoshare:/run/secrets/picoshare \
|
||||
git.woozle.org/neale/picoshare
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/plex:latest
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -7,4 +11,4 @@ podman run \
|
|||
--env VERSION=public \
|
||||
--mount type=bind,src=/srv/sys/plex,dst=/config \
|
||||
--mount type=bind,src=/srv/media,dst=/srv/media,readonly=true \
|
||||
lscr.io/linuxserver/plex:latest
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=git.woozle.org/neale/portal
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -6,4 +10,4 @@ podman run \
|
|||
--network homelab \
|
||||
--volume ./portal.json:/web/portal.json:ro \
|
||||
--volume ./deergrove.png:/web/portal.png:ro \
|
||||
git.woozle.org/neale/portal
|
||||
$image
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/prowlarr
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--network homelab \
|
||||
--volume /srv/sys/prowlarr:/config \
|
||||
lscr.io/linuxserver/prowlarr
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/radarr
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -7,4 +11,4 @@ podman run \
|
|||
--volume /srv/sys/radarr:/config \
|
||||
--volume /srv/media/movies:/srv/media/movies \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/radarr
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/readarr:develop
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -8,4 +12,4 @@ podman run \
|
|||
--volume /srv/media/books:/srv/media/books \
|
||||
--volume /srv/media/audiobooks:/srv/media/audiobooks \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/readarr:develop
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=dperson/samba
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
# You gotta use host networking to get discovery gubbins
|
||||
|
@ -13,4 +17,4 @@ podman run \
|
|||
--env SHARE2='media;/srv/media;yes;yes;yes' \
|
||||
--env-file /srv/secrets/samba-users.env \
|
||||
--volume /srv:/srv \
|
||||
dperson/samba
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=git.woozle.org/neale/simpleauth
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -6,4 +10,4 @@ podman run \
|
|||
--network homelab \
|
||||
--volume /srv/secrets/passwd:/run/secrets/passwd:ro \
|
||||
--volume /srv/secrets/simpleauth.key:/run/secrets/simpleauth.key:ro \
|
||||
git.woozle.org/neale/simpleauth
|
||||
$image
|
||||
|
|
|
@ -2,9 +2,12 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
image=caddy:2-alpine
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm -f $me
|
||||
podman run \
|
||||
--name $me \
|
||||
--network homelab \
|
||||
caddy:2-alpine
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/sonarr
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -7,4 +11,4 @@ podman run \
|
|||
--volume /srv/sys/sonarr:/config \
|
||||
--volume /srv/media/tv:/srv/media/tv \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/sonarr
|
||||
$image
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=git.woozle.org/neale/media-sucker
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -9,7 +13,7 @@ podman run \
|
|||
-v /srv/incoming/sucker:/incoming/sucker \
|
||||
--cpu-shares 256 \
|
||||
--user 911:19 \
|
||||
git.woozle.org/neale/media-sucker \
|
||||
$image \
|
||||
-incoming /incoming/sucker \
|
||||
-drive /hdev/sr0 /hdev/sr1 /hdev/sr2
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=lscr.io/linuxserver/transmission:latest
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -9,4 +13,4 @@ podman run \
|
|||
--env PEERPORT=51413 \
|
||||
--volume /srv/sys/transmission:/config \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
lscr.io/linuxserver/transmission:latest
|
||||
$image
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
while read service; do
|
||||
echo "=== $service"
|
||||
touch ./$service/upgrade
|
||||
sv -w 30 restart ./$service/
|
||||
done <<EOD
|
||||
caddy
|
||||
gitea
|
||||
readarr
|
||||
radarr
|
||||
sonarr
|
||||
lidarr
|
||||
prowlarr
|
||||
nzbget
|
||||
transmission
|
||||
EOD
|
|
@ -1,4 +1,8 @@
|
|||
#! /bin/sh
|
||||
|
||||
image=sigoden/dufs
|
||||
[ -f upgrade ] && podman pull $image && rm upgrade
|
||||
|
||||
me=$(basename $(pwd))
|
||||
podman rm $me
|
||||
podman run \
|
||||
|
@ -8,7 +12,7 @@ podman run \
|
|||
--volume /srv/storage:/srv/storage \
|
||||
--volume /srv/incoming:/srv/incoming \
|
||||
--volume /srv/media:/srv/media \
|
||||
sigoden/dufs \
|
||||
$image \
|
||||
--auth @/:rw \
|
||||
--auth neale@/:rw \
|
||||
-A \
|
||||
|
|
Loading…
Reference in New Issue