2024-11-28 13:34:56 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
|
2024-11-28 13:36:19 -07:00
|
|
|
image=quay.io/oauth2-proxy/oauth2-proxy
|
|
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
|
2024-11-28 13:34:56 -07:00
|
|
|
me=$(basename $(pwd))
|
|
|
|
podman rm -f $me
|
|
|
|
podman run \
|
|
|
|
--name $me \
|
|
|
|
--network homelab \
|
|
|
|
--name auth \
|
|
|
|
--volume /srv/secrets/oauth2-proxy.cfg:/etc/oauth2-proxy.cfg:ro \
|
2024-11-28 13:36:19 -07:00
|
|
|
$image \
|
2024-11-28 13:34:56 -07:00
|
|
|
--config=/etc/oauth2-proxy.cfg
|