From 1f083de57f7a95227bd3f75057b40584b0d0d4fd Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 20 Nov 2022 10:54:12 +0100 Subject: [PATCH 1/3] podman-seafile : simplification .env --- podman-seafile/10_install.sh | 2 +- podman-seafile/docker-compose.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/podman-seafile/10_install.sh b/podman-seafile/10_install.sh index 251c272..4c59689 100755 --- a/podman-seafile/10_install.sh +++ b/podman-seafile/10_install.sh @@ -40,7 +40,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then fi podman pull docker.io/library/memcached:${memcached_release} && podman 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 " 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 seahub_settings.py " && while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do echo -n "." diff --git a/podman-seafile/docker-compose.yml b/podman-seafile/docker-compose.yml index 6794696..6943b32 100644 --- a/podman-seafile/docker-compose.yml +++ b/podman-seafile/docker-compose.yml @@ -5,8 +5,6 @@ services: container_name: seafile-db environment: - MYSQL_LOG_CONSOLE=true - env_file: - - .env volumes: - seafile-db:/var/lib/mysql:Z @@ -26,8 +24,6 @@ services: - DB_HOST=db - TIME_ZONE=Europe/Paris - SEAFILE_SERVER_LETSENCRYPT=false - env_file: - - .env depends_on: - db - memcached From 85ba8275f0c25ad51b6ae16a2fcc5c1d1f683d7a Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 20 Nov 2022 10:55:59 +0100 Subject: [PATCH 2/3] podman-framadate : simplification .env --- podman-framadate/10_install.sh | 2 +- podman-framadate/docker-compose.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/podman-framadate/10_install.sh b/podman-framadate/10_install.sh index b67aa61..30246a8 100755 --- a/podman-framadate/10_install.sh +++ b/podman-framadate/10_install.sh @@ -37,7 +37,7 @@ fi podman pull docker.io/library/php:7-apache && podman pull docker.io/library/mysql:5.7 && -podman-compose --pod-args="--infra=true --infra-name=${project_name}_infra --share=" --podman-run-args "--requires=${project_name}_infra " 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 initialization to end... " && ( podman logs -f framadate-app 2>&1 & ) | grep -q 'configured -- resuming normal operations' && echo "OK" && diff --git a/podman-framadate/docker-compose.yml b/podman-framadate/docker-compose.yml index 60820e1..a15c106 100644 --- a/podman-framadate/docker-compose.yml +++ b/podman-framadate/docker-compose.yml @@ -6,8 +6,6 @@ services: environment: - MYSQL_USER=framadate - MYSQL_DATABASE=framadate - env_file: - - .env restart: always volumes: - framadate-db:/var/lib/mysql:Z @@ -28,8 +26,6 @@ services: - ADMIN_USER=admin - APACHE_RUN_USER=www-data - FRAMADATE_DEVMODE=1 - env_file: - - .env restart: always volumes: From 0bac5a81a914e890a60682e1e3c8d0a396dae712 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 20 Nov 2022 11:00:37 +0100 Subject: [PATCH 3/3] podman-jitsi : nettoyage --- podman-jitsi/10_install.sh | 9 +++------ podman-jitsi/vars.sh | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/podman-jitsi/10_install.sh b/podman-jitsi/10_install.sh index 981cbba..ca63cf4 100755 --- a/podman-jitsi/10_install.sh +++ b/podman-jitsi/10_install.sh @@ -64,15 +64,12 @@ echo "ENABLE_IPV6=0" >> .env export listen_if export listen_port -# podman-compose 0.1.x + podman 4.0 -#podman-compose --podman-run-args "--env-file .env" up -d && -# podman-compose 1.0.4 (devel) + podman 4.1+ 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 -( podman logs --tail=3 -f podman-jitsi_web_1 2>&1 & ) | grep -q '^\[services.d\] done.$' && -podman cp assets/welcome-background.png podman-jitsi_web_1:/usr/share/jitsi-meet/images/welcome-background.png && -podman exec -t podman-jitsi_web_1 chmod 444 /usr/share/jitsi-meet/images/welcome-background.png && +( podman logs --tail=3 -f ${project_name}_web_1 2>&1 & ) | grep -q '^\[services.d\] done.$' && +podman cp assets/welcome-background.png ${project_name}_web_1:/usr/share/jitsi-meet/images/welcome-background.png && +podman exec -t ${project_name}_web_1 chmod 444 /usr/share/jitsi-meet/images/welcome-background.png && podman pod stop ${pod_name} && echo Pod built and stopped. # cleanup diff --git a/podman-jitsi/vars.sh b/podman-jitsi/vars.sh index 66fe602..b135eed 100644 --- a/podman-jitsi/vars.sh +++ b/podman-jitsi/vars.sh @@ -7,9 +7,6 @@ listen_port="${GARBAYE_JITSI_ENV_LISTENPORT:-8085}" GARBAYE_JITSI_URL="${GARBAYE_JITSI_ENV_URL:-https://jitsi.garbaye.fr}" ## internal vars : do not touch project_name=${PWD##*/} -# podman-compose 0.1.x + podman 4.0 -#pod_name="${project_name}" -# podman-compose 1.0.4 (devel) + podman 4.1+ pod_name="pod_${project_name}" service_name="pod-${pod_name}.service" get_default_iface_ipv4 GARBAYE_JITSI_PRIV_IP