Skip to content

Commit

Permalink
switch to using mariadb for ld-db (#1670)
Browse files Browse the repository at this point in the history
This change addresses an issue seen on Apple Silicon, whereby the most recent Docker version on MacOS is more strict when it encounters images not built for arm64.

Switching to mariadb from mysql fixes the issue as mariadb provides both amd64 and arm64 images.  mysql does not, or the package metadata is corrupt in some way that Docker is not expecting.

MariaDB is understood to be a drop-in replacement for MySQL.
  • Loading branch information
megahirt authored Jan 5, 2023
1 parent d2fb278 commit 74a0494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ services:
- MONGO_INITDB_DATABASE=scriptureforge

ld-db:
image: mysql:5.7
image: mariadb:10.10
container_name: ld-db
platform: linux/amd64
# To access the MySQL database via localhost:3306 on your dev machine (e.g., in VS Code), uncomment the "ports" config below
# Note that if you're running MySQL on your dev machine already, change the first number to something else, like 3307 and access localhost:3307
# ports:
Expand All @@ -223,6 +222,7 @@ services:

ld-api:
image: sillsdev/web-languagedepot-api
platform: linux/amd64
container_name: ld-api
depends_on:
- ld-db
Expand Down

0 comments on commit 74a0494

Please sign in to comment.