Skip to content

Commit 0f26ea2

Browse files
retlehsclaude
andcommitted
🐛 Fix devcontainer build timeout and remove legacy soil plugin
- Remove Git feature that was causing build timeouts locally - Remove soil plugin activation (legacy code) - Export COMPOSER_ROOT_VERSION in setup script to ensure Sage v11 installation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 168520e commit 0f26ea2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
"userGid": "1000",
1414
"upgradePackages": "true"
1515
},
16-
"ghcr.io/devcontainers/features/sshd:1": {},
17-
"ghcr.io/devcontainers/features/git:1": {
18-
"version": "latest"
19-
}
16+
"ghcr.io/devcontainers/features/sshd:1": {}
2017
},
2118
"initializeCommand": "[ ! -f '.devcontainer/.env' ] && cp '.devcontainer/config/app/.env.example' '.devcontainer/.env' || true",
2219
"onCreateCommand": "chmod +x ./${localWorkspaceFolderBasename}/.devcontainer/install.sh && ./${localWorkspaceFolderBasename}/.devcontainer/install.sh",

.devcontainer/setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ wp core install --url="${WP_HOME}" --title="${WP_SITE_TITLE}" --admin_user="admi
3838

3939
# Add sage if it's not active
4040
if ! wp theme status sage --skip-plugins --skip-themes 2>/dev/null | grep -q "^sage.*active"; then
41+
# Ensure COMPOSER_ROOT_VERSION is available for composer
42+
export COMPOSER_ROOT_VERSION="${COMPOSER_ROOT_VERSION:-5.0.x-dev}"
4143
cd /roots/app
4244
# Only require sage if it doesn't exist
4345
if ! wp theme is-installed sage --skip-plugins --skip-themes 2>/dev/null; then
@@ -65,5 +67,4 @@ find $(wp theme path --skip-plugins --skip-themes 2>/dev/null) -mindepth 1 -maxd
6567
while read theme; do install_theme "$theme"; done
6668

6769
wp dotenv salts regenerate --skip-plugins --skip-themes 2>/dev/null || true
68-
wp plugin activate soil --skip-plugins --skip-themes 2>/dev/null || true
6970
wp rewrite structure '%postname%' --hard --skip-plugins --skip-themes 2>/dev/null

0 commit comments

Comments
 (0)