Migration gitea podman 4.1

This commit is contained in:
KsmoinO 2022-11-05 18:56:11 +01:00
parent 9c30a21788
commit 1c1dae3e5b
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ podman image exists ${gitea_image}:${gitea_version} &&
podman pull ${postgres_image}:${postgres_version} &&
# force refresh of app.ini
podman unshare rm -f `get_podman_volume_path ${datavolume}`/gitea/conf/app.ini
podman-compose --podman-run-args "--env-file .env" up -d &&
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
echo -n "Waiting for gitea to finish starting " &&
( podman logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' &&
echo "OK" &&

View File

@ -17,6 +17,7 @@ envvars='GARBAYE_GITEA_POSTGRES_PASSWORD'
## internal vars : do not touch
project_name=${PWD##*/}
pod_name="${project_name}"
pod_name="pod_${project_name}"
service_name="pod-${pod_name}.service"
get_default_iface_ipv4 GARBAYE_GITEA_SMTP_SERVER
upstream_images="${gitea_image} ${postgres_image}"