Make WordPress Core

Changeset 57862

Timestamp:
03/21/2024 06:40:34 PM (4 months ago)
Author:
desrosj
Message:

Build/Test Tools: Fix bug pulling local environment containers on Apple silicone.

The MySQL Docker containers for versions 5.7 and below do not support recent Apple silicone chips. Previously this was fixed by including amd64/ as a prefix to the image name in the docker-compose.yml file (see [54096]). However, this stopped working after recent updates to Docker Desktop.

This changeset removes the amd64/ prefix for the image used as the database container and raises the default version of MySQL in the local development environment to the current LTS version (8.0). Because this version is still maintained, there are arm64 containers available to use.

This also documents a new workaround for contributors looking to run the local Docker environment using MySQL 5.7 or earlier, which entails creating a small docker-compose.override.yml.

Merges [57568] to the 6.4 branch.

Props bernhard-reiter, johnbillion, afragen, huzaifaalmesbah.
Fixes #59930.

Location:
branches/6.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/6.4

  • branches/6.4/.env

    r57198 r57862  
    4747# The database version to use.
    4848#
    49 # Defaults to 5.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
     49# Defaults to with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
    5050#
    5151# When using `mysql`, see https://hub.docker.com/r/amd64/mysql for valid versions.
    5252# When using `mariadb`, see https://hub.docker.com/r/amd64/mariadb for valid versions.
    5353##
    54 LOCAL_DB_VERSION=5.7
     54LOCAL_DB_VERSION=
    5555
    5656# The debug settings to add to `wp-config.php`.
  • branches/6.4/README.md

    r57214 r57862  
    112112```
    113113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
    114137## Credentials
    115138
  • branches/6.4/docker-compose.yml

    r56464 r57862  
    6666  ##
    6767  mysql:
    68     image: amd64/${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
     68    image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
    6969
    7070    networks:
Note: See TracChangeset for help on using the changeset viewer.