From d68bcdc8bd9a9b7c115aa61500f7c5e5b5077615 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Mon, 22 Nov 2021 06:14:30 +0530 Subject: [PATCH] ci: output erpnext-nginx container logs --- docker-compose.yml | 9 +++++++++ tests/test-erpnext.sh | 3 +++ 2 files changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 398c7093..5b050973 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -163,6 +163,15 @@ services: - sites-vol:/home/frappe/frappe-bench/sites:rw - logs-vol:/home/frappe/frappe-bench/logs:rw + fix-vol-permissions: + image: frappe/erpnext-worker:${ERPNEXT_VERSION} + user: root + command: chown -R 1000:1000 /sites /assets /logs + volumes: + - sites-vol:/sites + - assets-vol:/assets + - logs-vol:/logs + volumes: mariadb-vol: redis-cache-vol: diff --git a/tests/test-erpnext.sh b/tests/test-erpnext.sh index 839dfbeb..fc0eca48 100755 --- a/tests/test-erpnext.sh +++ b/tests/test-erpnext.sh @@ -38,5 +38,8 @@ docker restart ${project_name}_fix-vol-permissions_1 check_health $project_name +# TODO: remove when pr ci run successful +docker logs ${project_name}_erpnext-nginx_1 + ping_site rm .env