[wp-trac] [WordPress Trac] #59930: Problems pulling relevant MySQL Docker container

WordPress Trac noreply at wordpress.org
Tue Dec 19 17:30:55 UTC 2023


#59930: Problems pulling relevant MySQL Docker container
------------------------------+---------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.5
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+---------------------

Comment (by afragen):

 I've gotten around to testing with my setup, ie using a `docker-
 compose.override.yml` containing the following.


 {{{
 services:
   mysql:
     platform: linux/amd64
   php:
     platform: linux/amd64
     environment:
       - LOCAL_PHP_XDEBUG=true

     volumes:
       - ../custom-php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
       - ./:/var/www

 }}}

 I still have some issues with getting xDebug to stop at breakpoints, but
 on an Apple Silicon Mac it loads and works with the following commands.

 `npm install && npm run build:dev && npm run env:start && sleep 2 && npm
 run env:install`

 The `sleep` is there as it can take mysql a second or 2 to load and this
 way I don't have to re-run `env:install` again.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59930#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list