podman-compose : force python3.9 pour compatibilité EL8
This commit is contained in:
parent
3f97b3c1d5
commit
e7f321f9e9
|
@ -38,7 +38,7 @@ if ! podman image exists ${framadate_image}:${framadate_version}; then
|
||||||
fi
|
fi
|
||||||
podman image pull ${mysql_image}:${mysql_version} &&
|
podman image pull ${mysql_image}:${mysql_version} &&
|
||||||
|
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 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 initialization to end... " &&
|
echo -n "Waiting for initialization to end... " &&
|
||||||
( podman container logs -f framadate-app 2>&1 & ) | grep -q 'configured -- resuming normal operations' &&
|
( podman container logs -f framadate-app 2>&1 & ) | grep -q 'configured -- resuming normal operations' &&
|
||||||
echo "OK" &&
|
echo "OK" &&
|
||||||
|
|
|
@ -57,7 +57,7 @@ fi
|
||||||
podman image pull ${postgres_image}:${postgres_version} &&
|
podman image pull ${postgres_image}:${postgres_version} &&
|
||||||
# force refresh of app.ini
|
# force refresh of app.ini
|
||||||
podman unshare rm -f `get_podman_volume_path ${datavolume}`/gitea/conf/app.ini
|
podman unshare rm -f `get_podman_volume_path ${datavolume}`/gitea/conf/app.ini
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 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 " &&
|
echo -n "Waiting for gitea to finish starting " &&
|
||||||
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' &&
|
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' &&
|
||||||
echo "OK" &&
|
echo "OK" &&
|
||||||
|
|
|
@ -83,7 +83,7 @@ fi
|
||||||
if ! podman image exists ${database_image}:${database_version}; then
|
if ! podman image exists ${database_image}:${database_version}; then
|
||||||
podman image pull ${database_image}:${database_version} || exit 1
|
podman image pull ${database_image}:${database_version} || exit 1
|
||||||
fi
|
fi
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 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 hedgedoc to finish starting " &&
|
echo -n "Waiting for hedgedoc to finish starting " &&
|
||||||
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'HTTP Server listening at ' &&
|
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'HTTP Server listening at ' &&
|
||||||
echo "OK" &&
|
echo "OK" &&
|
||||||
|
|
|
@ -67,7 +67,7 @@ echo "COLIBRI_REST_ENABLED=1" >> .env
|
||||||
export listen_if
|
export listen_if
|
||||||
export listen_port
|
export listen_port
|
||||||
|
|
||||||
podman-compose --pod-args "--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 podman-compose --pod-args "--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
||||||
|
|
||||||
# Wait for web to be up
|
# Wait for web to be up
|
||||||
( podman container logs --tail=3 -f ${project_name}_web_1 2>&1 & ) | grep -q '^\[services.d\] done.$' &&
|
( podman container logs --tail=3 -f ${project_name}_web_1 2>&1 & ) | grep -q '^\[services.d\] done.$' &&
|
||||||
|
|
|
@ -38,7 +38,7 @@ if ! podman image exists ${synapse_image}:${synapse_version}; then
|
||||||
podman image pull ${synapse_image}:${synapse_version} || exit 1
|
podman image pull ${synapse_image}:${synapse_version} || exit 1
|
||||||
fi
|
fi
|
||||||
podman image pull ${postgres_image}:${postgres_version} &&
|
podman image pull ${postgres_image}:${postgres_version} &&
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
||||||
|
|
||||||
end=$((SECONDS+120))
|
end=$((SECONDS+120))
|
||||||
while [ $SECONDS -lt $end ]; do
|
while [ $SECONDS -lt $end ]; do
|
||||||
|
|
|
@ -41,7 +41,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then
|
||||||
fi
|
fi
|
||||||
podman image pull docker.io/library/memcached:${memcached_release} &&
|
podman image pull docker.io/library/memcached:${memcached_release} &&
|
||||||
podman image pull docker.io/library/mariadb:${mariadb_release} &&
|
podman image pull docker.io/library/mariadb:${mariadb_release} &&
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 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 seahub_settings.py " &&
|
echo -n "Waiting for seahub_settings.py " &&
|
||||||
while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do
|
while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
|
|
|
@ -40,7 +40,7 @@ export listen_port
|
||||||
if ! podman image exists ${service_image}:${service_version}; then
|
if ! podman image exists ${service_image}:${service_version}; then
|
||||||
podman image pull ${service_image}:${service_version} || exit 1
|
podman image pull ${service_image}:${service_version} || exit 1
|
||||||
fi
|
fi
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 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 vaultwarden to finish starting " &&
|
echo -n "Waiting for vaultwarden to finish starting " &&
|
||||||
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'Rocket has launched from ' &&
|
( podman container logs -f ${container_name} 2>&1 & ) | grep -q 'Rocket has launched from ' &&
|
||||||
echo "OK" &&
|
echo "OK" &&
|
||||||
|
|
|
@ -35,7 +35,7 @@ if ! podman image exists ${wp_image}:${wp_version}; then
|
||||||
fi
|
fi
|
||||||
podman image pull ${mysql_image}:${mysql_version} &&
|
podman image pull ${mysql_image}:${mysql_version} &&
|
||||||
|
|
||||||
podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
python3.9 podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra --env-file .env" up -d &&
|
||||||
sleep 10 # TODO : wait for healthckeck on mariadb
|
sleep 10 # TODO : wait for healthckeck on mariadb
|
||||||
shred -u .env &&
|
shred -u .env &&
|
||||||
podman pod stop ${pod_name}
|
podman pod stop ${pod_name}
|
||||||
|
|
Loading…
Reference in a new issue