feat: devcontainer.json, explicit sshd_config, Xdebug 3 docs#115
Merged
jorge07 merged 2 commits intojorge07:masterfrom Feb 22, 2026
Merged
feat: devcontainer.json, explicit sshd_config, Xdebug 3 docs#115jorge07 merged 2 commits intojorge07:masterfrom
jorge07 merged 2 commits intojorge07:masterfrom
Conversation
.devcontainer/devcontainer.json (new)
Modern VS Code Dev Containers config. Uses jorge07/alpine-php:8.3-dev,
forwards ports 22 and 9003, pre-installs php-debug + Intelephense,
sets php.validate.executablePath and intelephense.phpVersion.
devfs/etc/ssh/sshd_config (new, all 4 versions)
Replaces the brittle 'sed -i s/#PermitRootLogin...' hack with an
explicit, self-documenting sshd_config. Settings:
- PermitRootLogin yes, PasswordAuthentication yes (IDE SSH compat)
- PubkeyAuthentication yes (allows key-based auth as alternative)
- TCPKeepAlive + ClientAlive (stable IDE sessions)
- AllowTcpForwarding + GatewayPorts (remote debug port forwarding)
Dockerfile sed line removed from all four PHP versions.
doc/IDE.md (rewritten)
Updated from PHP 7.x/Xdebug 2 era to current:
- VS Code Dev Containers workflow with launch.json config
- PHPStorm SSH remote interpreter setup (modern UI paths)
- Xdebug 3 trigger mode: XDEBUG_SESSION env var, port 9003
- Side-by-side Xdebug 2 vs 3 config table
- CLI debugging examples with docker exec
Build-tested locally: 8.3 dev image, sshd_config confirmed present.
Closes jorge07#104
…3 quickstart Replaces the minimal 'Documentation' link with inline docs covering: - Image table (PHP version, Alpine, arch, registries) - Quick start for both production and dev images - VS Code Dev Container 3-step setup (devcontainer.json) - Xdebug launch.json config - PHPStorm SSH remote interpreter setup - Xdebug 3 key settings + migration note - Full PHP extensions list (all images) - GHCR badge added alongside Docker Hub
jorge07
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #104
.devcontainer/devcontainer.json
Modern VS Code Dev Containers config — open the project, click Reopen in Container, done. Pre-installs
php-debug+Intelephense, forwards ports 9003 (Xdebug) and 22 (SSH), sets the PHP executable path.SSH sshd_config
Replaces the
sed -i s/#PermitRootLogin...hack with an explicit config file shipped viadevfs/etc/ssh/sshd_config(all 4 PHP versions). TheADD devfs /already happens after the RUN layer, so the file is cleanly installed without brittle regex patching.Settings:
PermitRootLogin yes,PasswordAuthentication yes(IDE compat),PubkeyAuthentication yes,TCPKeepAlive/ClientAlivefor stable IDE sessions,AllowTcpForwarding/GatewayPortsfor remote debug port forwarding.doc/IDE.md
Rewritten from PHP 7.x/Xdebug 2 era:
.vscode/launch.jsondocker execVerification
Build-tested locally — 8.3 dev image,
/etc/ssh/sshd_configconfirmed present with expected settings.