Make WordPress Core

Changeset 60081


Ignore:
Timestamp:
03/25/2025 01:09:41 PM (10 months ago)
Author:
desrosj
Message:

Build/Test Tools: Mount correct volume directory for devcontainer.

This switches to mounting the current directory instead of the one above the working directory in the mounted volume, which can include many directories of unrelated projects.

Props johnbillion.
Fixes #62899.

Location:
trunk/.devcontainer
Files:
3 edited

Legend:

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

    r57667 r60081  
    44    "dockerComposeFile": "docker-compose.yml",
    55    "service": "app",
    6     "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
     6    "workspaceFolder": "/workspace",
    77
    88    // Features to add to the dev container. More info: https://containers.dev/features.
  • trunk/.devcontainer/docker-compose.yml

    r55353 r60081  
    1313      WORDPRESS_DB_NAME: exampledb
    1414    volumes:
    15       - ../..:/workspaces:cached
     15      - ..:/workspace:cached
    1616
    1717  db:
  • trunk/.devcontainer/setup.sh

    r55353 r60081  
    1010
    1111# Install dependencies
    12 cd /workspaces/wordpress-develop
     12cd /workspace
    1313npm install && npm run build:dev
    1414
Note: See TracChangeset for help on using the changeset viewer.