2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 14:21:05 +00:00

fix: use docker volumes (#1067)

* fix: use docker volumes

remove bind mount
use docker volumes

* ci: remove payments app from tests
This commit is contained in:
Revant Nandgaonkar 2023-01-31 09:48:52 +05:30 committed by GitHub
parent 8342bd93c8
commit c013942d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -204,7 +204,7 @@ bench get-app --branch version-12 https://github.com/myusername/myapp
bench --site mysite.localhost install-app myapp
```
At the time of this writing, the Payments app has been factored out of the Version 14 ERPNext app and is now a separate app. ERPNext will not install without it, however, so we need to specify `--resolve-deps` command line switch to install it.
At the time of this writing, the Payments app has been factored out of the Version 14 ERPNext app and is now a separate app. ERPNext will not install it.
```shell
bench get-app --branch version-14 --resolve-deps erpnext

View File

@ -17,7 +17,7 @@ services:
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-changeit}
volumes:
- ${HOME}/data/mariadb:/var/lib/mysql
- db-data:/var/lib/mysql
networks:
- mariadb-network
@ -25,3 +25,6 @@ networks:
mariadb-network:
name: mariadb-network
external: false
volumes:
db-data:

View File

@ -42,4 +42,7 @@ services:
ports:
- 443:443
volumes:
- ${HOME}/data/traefik/certificates:/certificates
- cert-data:/certificates
volumes:
cert-data:

View File

@ -89,12 +89,6 @@ def erpnext_site(compose: Compose):
"erpnext",
site_name,
]
erpnext_version = os.environ.get("ERPNEXT_VERSION")
if erpnext_version in [
"develop",
"version-14",
] or erpnext_version.startswith("v14"):
args.append("--install-app=payments")
compose.bench(*args)
compose("restart", "backend")
yield site_name