From 65f6228be8117635b322c0dd0efd59fd850c9693 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Mon, 6 Dec 2021 17:55:24 +0530 Subject: [PATCH] fix: update devcontainer mariadb (#605) --- devcontainer-example/docker-compose.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devcontainer-example/docker-compose.yml b/devcontainer-example/docker-compose.yml index 63f3f387..66c171b2 100644 --- a/devcontainer-example/docker-compose.yml +++ b/devcontainer-example/docker-compose.yml @@ -1,12 +1,19 @@ version: "3.7" services: mariadb: - image: mariadb:10.3 + image: mariadb:10.6 + command: + - --character-set-server=utf8mb4 + - --collation-server=utf8mb4_unicode_ci + - --skip-character-set-client-handshake + - --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6 environment: - MYSQL_ROOT_PASSWORD=123 - MYSQL_USER=root + # Sometimes db initialization takes longer than 10 seconds and site-creator goes away. + # Frappe doesn't use CONVERT_TZ() function that requires time zone info, so we can just skip it. + - MYSQL_INITDB_SKIP_TZINFO=1 volumes: - - ../installation/frappe-mariadb.cnf:/etc/mysql/conf.d/frappe.cnf - mariadb-vol:/var/lib/mysql # Enable PostgreSQL only if you use it, see development/README.md for more information.