[wp-trac] [WordPress Trac] #57187: Add devcontainer + Codespaces support

WordPress Trac noreply at wordpress.org
Fri Feb 10 13:24:17 UTC 2023


#57187: Add devcontainer + Codespaces support
------------------------------+---------------------
 Reporter:  helen             |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  6.2
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+---------------------

Comment (by johnbillion):

 I can't get the devcontainer to start up in VS Code locally, I'm getting
 the following error.

 Shall we use this ticket as a thread for now or shall we create separate
 tickets for issues now that it's been merged?

 {{{
 ERROR: Service 'wordpress' failed to build : Build failed
 [14996 ms] Error: Command failed: docker-compose --project-name
 wp_devcontainer -f /Users/john/sites/wp/.devcontainer/docker-compose.yml
 -f /Users/john/Library/Application Support/Code/User/globalStorage/ms-
 vscode-remote.remote-containers/data/docker-compose/docker-
 compose.devcontainer.build-1676035102524.yml build
 [14996 ms]     at gF (/Users/john/.vscode/extensions/ms-vscode-remote
 .remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:1872:412)
 [14996 ms]     at process.processTicksAndRejections
 (node:internal/process/task_queues:96:5)
 [14996 ms]     at async rie (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:1872:2381)
 [14996 ms]     at async tie (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:1854:2396)
 [14996 ms]     at async Fie (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:1921:2266)
 [14996 ms]     at async Vf (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:1921:3241)
 [14996 ms]     at async eoe (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:2045:17324)
 [14996 ms]     at async Qse (/Users/john/.vscode/extensions/ms-vscode-
 remote.remote-containers-0.275.1/dist/spec-
 node/devContainersSpecCLI.js:2045:17065)
 [14998 ms] Exit code 1
 [14999 ms] Command failed: /Applications/Visual Studio
 Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code
 Helper (Plugin) --ms-enable-electron-run-as-node
 /Users/john/.vscode/extensions/ms-vscode-remote.remote-
 containers-0.275.1/dist/spec-node/devContainersSpecCLI.js up --user-data-
 folder /Users/john/Library/Application Support/Code/User/globalStorage/ms-
 vscode-remote.remote-containers/data --container-session-data-folder /tmp
 /devcontainers-14b29ec9-458f-4953-9888-1ba9c74df4941676035088525
 --workspace-folder /Users/john/sites/wp --workspace-mount-consistency
 cached --id-label devcontainer.local_folder=/Users/john/sites/wp --id-
 label
 devcontainer.config_file=/Users/john/sites/wp/.devcontainer/devcontainer.json
 --log-level debug --log-format json --config
 /Users/john/sites/wp/.devcontainer/devcontainer.json --default-user-env-
 probe loginInteractiveShell --mount
 type=volume,source=vscode,target=/vscode,external=true --skip-post-create
 --update-remote-user-uid-default on --mount-workspace-git-root true
 [14999 ms] Exit code 1
 }}}

 ** Environment **

 * VS Code 1.75.1
 * macOS 12.3
 * Docker Desktop 4.7.1

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


More information about the wp-trac mailing list