Make WordPress Core

Changeset 55353


Ignore:
Timestamp:
02/16/2023 03:48:26 AM (15 months 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  
    88sudo mv wp-cli.phar /usr/local/bin/wp
    99
     10echo "Installing chromium..."
     11sudo apt-get update
     12sudo apt-get -y install --no-install-recommends chromium
     13
    1014# Copy the welcome message
    1115sudo cp .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
  • trunk/.devcontainer/setup.sh

    • Property svn:executable set to *
    r55303 r55353  
    33set -eux
    44
    5 if [ "${CODESPACE_NAME}" = "" ]; then
     5if [ -z ${CODESPACE_NAME+x} ]; then
    66    SITE_HOST="http://localhost:8080"
    77else
Note: See TracChangeset for help on using the changeset viewer.