2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-12 16:26:35 +00:00

ci: fix test volume permissions

This commit is contained in:
Revant Nandgaonkar 2021-11-21 21:39:19 +05:30
parent 3295c8070e
commit 318f65170a
3 changed files with 31 additions and 1 deletions

View File

@ -20,6 +20,7 @@ services:
- frappe-worker-default - frappe-worker-default
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
- fix-vol-permissions
links: links:
- [app]-python - [app]-python
- frappe-socketio - frappe-socketio
@ -117,6 +118,15 @@ services:
- sites-vol:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- logs-vol:/home/frappe/frappe-bench/logs:rw - logs-vol:/home/frappe/frappe-bench/logs:rw
fix-vol-permissions:
image: [app]-worker
user: root
command: chown -R 1000:1000 /sites /assets /logs
volumes:
- sites-vol:/sites
- assets-vol:/assets
- logs-vol:/logs
volumes: volumes:
assets-vol: assets-vol:
sites-vol: sites-vol:

View File

@ -18,6 +18,7 @@ services:
- frappe-worker-default - frappe-worker-default
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
- fix-vol-permissions
links: links:
- erpnext-python - erpnext-python
- frappe-socketio - frappe-socketio
@ -114,6 +115,15 @@ services:
- sites-vol:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- logs-vol:/home/frappe/frappe-bench/logs: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: volumes:
assets-vol: assets-vol:
sites-vol: sites-vol:

View File

@ -18,6 +18,7 @@ services:
- frappe-worker-default - frappe-worker-default
- frappe-worker-long - frappe-worker-long
- frappe-worker-short - frappe-worker-short
- fix-vol-permissions
links: links:
- frappe-python - frappe-python
- frappe-socketio - frappe-socketio
@ -114,7 +115,16 @@ services:
- sites-vol:/home/frappe/frappe-bench/sites:rw - sites-vol:/home/frappe/frappe-bench/sites:rw
- logs-vol:/home/frappe/frappe-bench/logs:rw - logs-vol:/home/frappe/frappe-bench/logs:rw
fix-vol-permissions:
image: frappe/frappe-worker:${ERPNEXT_VERSION}
user: root
command: chown -R 1000:1000 /sites /assets /logs
volumes:
- sites-vol:/sites
- assets-vol:/assets
- logs-vol:/logs
volumes: volumes:
assets-vol: assets-vol:
sites-vol: sites-vol:
logs-vol: logs-vol: