chore: update lifecycle scripts paths in devcontainer configuration
CI/CD Pipeline / playwright (push) Successful in 2m17s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m50s
测试最新依赖 / playwright (push) Failing after 47s
测试最新依赖 / build-and-test (push) Failing after 1m48s

This commit is contained in:
严浩
2026-03-28 18:07:32 +08:00
parent a4f0f90e90
commit 1ae6bc1128
2 changed files with 12 additions and 13 deletions
+7 -8
View File
@@ -26,14 +26,13 @@
} }
}, },
"mounts": [ "mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume", "source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
"source=${localWorkspaceFolder}/.devcontainer/lifecycle-scripts.d,target=/usr/local/etc/lifecycle-scripts.d,type=bind,consistency=delegated"
], ],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated", "workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
"initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;", // "initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
"onCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh onCreateCommand", "onCreateCommand": "/devcontainer/run-lifecycle-scripts.sh onCreateCommand",
"updateContentCommand": "/usr/local/bin/run-lifecycle-scripts.sh updateContentCommand", "updateContentCommand": "/devcontainer/run-lifecycle-scripts.sh updateContentCommand",
"postCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh postCreateCommand", "postCreateCommand": "/devcontainer/run-lifecycle-scripts.sh postCreateCommand",
"postStartCommand": "/usr/local/bin/run-lifecycle-scripts.sh postStartCommand", "postStartCommand": "/devcontainer/run-lifecycle-scripts.sh postStartCommand",
"postAttachCommand": "/usr/local/bin/run-lifecycle-scripts.sh postAttachCommand" "postAttachCommand": "/devcontainer/run-lifecycle-scripts.sh postAttachCommand"
} }
@@ -1,13 +1,13 @@
#!/bin/zsh -eu #!/bin/zsh -eu
h-setup-zh-locale h-setup-zh-locale
h-setup-bun-bin # h-setup-bun-bin
h-setup-pnpm-bin # h-setup-pnpm-bin
h-setup-chromium # h-setup-chromium
h-setup-desktop-lite # h-setup-desktop-lite
h-install-node-modules h-smart-install-node-modules
echo "-----------------------------" echo "-----------------------------"
echo "开发容器已启动并配置完成!" echo "开发容器已启动并配置完成!"