From f823ea82e0a427852da27e785043330cf3080ebb Mon Sep 17 00:00:00 2001 From: Chev91 <107302692+Chev91@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:44:24 +0200 Subject: [PATCH] Update development.md I encountered errors while setting up the development instance, during the initialization process. These were due to compatibility issues with Docker architecture. Updating the platform to linux/amd64 resolved the issue. --- docs/development.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/development.md b/docs/development.md index 14bcce83..4ae09c29 100644 --- a/docs/development.md +++ b/docs/development.md @@ -76,7 +76,12 @@ NOTE: Prior to doing the following, make sure the user is **frappe**. bench init --skip-redis-config-generation frappe-bench cd frappe-bench ``` -NOTE: If this step throws errors, you may need to update your code to ensure it is compatible with Docker architecture. This could be a common issue for macOS. In your Frapper Docker docker-compose.yml file, update mariadb (line 3), redis (line 39 and 43) and frappe (line 47) to include 'platform: linux/amd64' +**# Note: If you encounter errors during the initialization process, it may be due to compatibility issues with Docker architecture, especially on macOS. + +# To address potential compatibility issues on macOS, update the docker-compose.yml file as follows: +# - Update the 'mariadb' service (line 3) to include 'platform: linux/amd64'. +# - Update the 'redis' service (lines 39 and 43) to include 'platform: linux/amd64'. +# - Update the 'frappe' service (line 47) to include 'platform: linux/amd64'.** To setup frappe framework version 14 bench set `PYENV_VERSION` environment variable to `3.10.5` (default) and use NodeJS version 16 (default),