Skip to content

Commit ce20ad7

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60081 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 47e1738 commit ce20ad7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "WordPress Core Development",
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.
99
"features": {

.devcontainer/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
WORDPRESS_DB_PASSWORD: examplepass
1313
WORDPRESS_DB_NAME: exampledb
1414
volumes:
15-
- ../..:/workspaces:cached
15+
- ..:/workspace:cached
1616

1717
db:
1818
image: mariadb

.devcontainer/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else
99
fi
1010

1111
# Install dependencies
12-
cd /workspaces/wordpress-develop
12+
cd /workspace
1313
npm install && npm run build:dev
1414

1515
# Install WordPress and activate the plugin/theme.

0 commit comments

Comments
 (0)