From 9431228c12627c7f8178f9d58fb95393e941b1f5 Mon Sep 17 00:00:00 2001 From: Chev91 <107302692+Chev91@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:56:58 +0200 Subject: [PATCH] Update docker-compose.yml 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