[wp-trac] [WordPress Trac] #57896: Improve devcontainer + Codespaces support
WordPress Trac
noreply at wordpress.org
Tue Oct 31 04:52:20 UTC 2023
#57896: Improve devcontainer + Codespaces support
------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Comment (by tnolte):
Just chiming in here that, taking the current Dev Container setup as a
loose example, I was able to setup a fully working Codespaces, and local
Dev Container, setup where a specific version of WordPress is installed.
My setup is for plugin development, and uses a Composer-based install of
WordPress, however, the working solution should work properly with the
`wordpress-develop` repo using it as the WordPress install. There were
some required adjustments needed to both the `docker-compose.yml` file as
well as the `wp-config.php` file being used to drive the site especially
when running behind the Codespaces proxy.
My working bits are here:
- https://github.com/forumone/wp-cfm/tree/fix/Release-Builds-
SemVer/.devcontainer
- https://github.com/forumone/wp-cfm/blob/fix/Release-Builds-SemVer
/docker-compose.yml
- https://github.com/forumone/wp-cfm/blob/fix/Release-Builds-SemVer/tools
/local-env/wp-config.php#L96-L116
I didn't take the time to read through all of the comments here in detail
to account for any desired changes to the setup. I can give a crack at
this and open up a PR with something that will hopefully work.
One additional nice benefit is that the local Dev Container can be used
with Visual Studio Code but also other IDE by using the DevPod tool which
has full support for Dev Containers. I have been able to successfully use
PhpStorm for example with starting up the Dev Container via DevPod and
then just using an SSH terminal to have the container in the PhpStorm
terminal. JetBrains support for Dev Containers is in beta and is pretty
lacking but this may be more integrated in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57896#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list