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

WordPress Trac noreply at wordpress.org
Wed Nov 23 16:15:22 UTC 2022


#57187: Add devcontainer + Codespaces support
------------------------------+-----------------------------
 Reporter:  helen             |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Finally opening up a Trac ticket after posting on
 [https://make.wordpress.org/core/2022/11/09/improving-the-contributor-
 experience-github-codespaces-for-wordpress-core/ Make/Core] :)

 I'd like to start adding "official" support for remote dev environments to
 contribute to core (including testing) - I believe this makes
 contributions more accessible to a wider audience, by making fully-
 featured dev environments available on more devices and getting people
 started much faster (i.e. you click a button on a repo instead of braving
 conference wifi to download Docker images or passing around USB sticks).

 This ticket is more specifically for devcontainer + Codespaces support in
 core so you can start a Codespace from GitHub web - devcontainers are a
 set of config files that can be used with local Docker as well via VSCode
 (and otherwise). Codespaces is a GitHub-hosted solution to then run those
 devcontainers in the cloud (Azure) with the default ability to open VSCode
 for the Web connected to said container for a completely in-browser
 experience, meaning you can have a fully-featured code editing, building,
 and app running experience on a tablet.

 Here's what I think is needed but need opinions on where we should have
 boundaries between published images, devcontainers, and setup scripts as I
 am not myself particularly knowledgeable about containers 😁

 * A baseline image that can be used for any number of dev needs - core,
 Gutenberg, other plugins and themes, testing, etc. This should probably
 include Composer, the appropriate Node+npm versions, and wp-cli. I have
 never yet gotten Xdebug to work in Codespaces. My current PR uses the
 Docker-published `wordpress` image, not the ones we use for `wp-env` -
 seems to me it would be nice to have something that spins up faster but I
 don't know enough here.
 * A `devcontainer.json` that includes some VSCode extensions (or
 explicitly decide not to include any).
 * Documentation, esp in the Make/Core Handbook. :)

 Full disclosure: I do currently work at GitHub; not in this area, but I do
 have access to helpful resources as needed. There are a number of services
 out there for remote dev with varying tiers of free usage, over time it
 would be great to support multiple options.

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


More information about the wp-trac mailing list