From 6c798cfb2bcbdfa5e9a344503588ddaf504ba49c Mon Sep 17 00:00:00 2001 From: Chev91 <107302692+Chev91@users.noreply.github.com> Date: Tue, 25 Jun 2024 07:06:25 +0200 Subject: [PATCH] Update docker-compose.yml (#1415) A challenge I encountered while setting up the Development instance. The command 'bench init --skip-redis-config-generation frappe-bench' kept generating errors, which I discovered were due to an architecture mismatch between Docker and macOS. By updating the platform to linux/amd64 in my code, I was able to resolve this issue. --- devcontainer-example/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devcontainer-example/docker-compose.yml b/devcontainer-example/docker-compose.yml index e27b8daa..3df5c417 100644 --- a/devcontainer-example/docker-compose.yml +++ b/devcontainer-example/docker-compose.yml @@ -2,6 +2,7 @@ version: "3.7" services: mariadb: image: docker.io/mariadb:10.6 + platform: linux/amd64 command: - --character-set-server=utf8mb4 - --collation-server=utf8mb4_unicode_ci @@ -37,12 +38,15 @@ services: redis-cache: image: docker.io/redis:alpine + platform: linux/amd64 redis-queue: image: docker.io/redis:alpine + platform: linux/amd64 frappe: image: docker.io/frappe/bench:latest + platform: linux/amd64 command: sleep infinity environment: - SHELL=/bin/bash