Make WordPress Core

Changeset 59489


Ignore:
Timestamp:
12/05/2024 03:35:17 PM (8 months ago)
Author:
desrosj
Message:

Build/Test Tools: Properly escape $ characters in Docker compose file.

This fixes an invalid interpolation format error that can be encountered in the mysql container’s healthcheck test command.

Follow up to [59484].

Props afercia.
See #62221.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docker-compose.yml

    r59484 r59489  
    8383
    8484    healthcheck:
    85       test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then case \"$LOCAL_DB_VERSION\" in 5.5|10.0|10.1|10.2|10.3) mysqladmin ping -h localhost || exit $?;; *) mariadb-admin ping -h localhost || exit $?;; esac; else mysqladmin ping -h localhost || exit $?; fi" ]
     85      test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then case \"$LOCAL_DB_VERSION\" in 5.5|10.0|10.1|10.2|10.3) mysqladmin ping -h localhost || exit $$?;; *) mariadb-admin ping -h localhost || exit $$?;; esac; else mysqladmin ping -h localhost || exit $$?; fi" ]
    8686      timeout: 5s
    8787      interval: 5s
Note: See TracChangeset for help on using the changeset viewer.