💥 TRENDING: Changeset/ - Complete Album!

Changeset 55353


Ignore:
Timestamp:
02/16/2023 03:48:26 AM (3 years ago)
Author:
helen
Message:

Build/Test Tools: Improve devcontainer setup for non-Codespaces usage

This now runs in local Docker as well. Sets the executable propset to explicitly identify install-tool.sh and setup.sh as executable. Unclear if this will sync via the Git mirror; ideally it would as otherwise the two files show as modified in a Git clone even in a fresh container.

Props samruddhikhandale.
See #57187.

Location:
trunk/.devcontainer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.devcontainer/devcontainer.json

    r55303 r55353  
    33    "name": "WordPress Core Development",
    44    "dockerComposeFile": "docker-compose.yml",
    5     "service": "wordpress",
     5    "service": "app",
    66    "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
    77
  • trunk/.devcontainer/docker-compose.yml

    r55303 r55353  
    22
    33services:
    4   wordpress:
     4  app:
    55    image: wordpress
    66    restart: always
     
    1313      WORDPRESS_DB_NAME: exampledb
    1414    volumes:
    15       - ../src:/var/www/html
     15      - ../..:/workspaces:cached
    1616
    1717  db:
    1818    image: mariadb
    19     restart: always
     19    restart: unless-stopped
    2020    environment:
    2121      MYSQL_DATABASE: exampledb
     
    2727
    2828volumes:
    29   wordpress:
    3029  db:
  • trunk/.devcontainer/install-tools.sh

    • Property svn:executable set to *
    r55303 r55353