chore: update lifecycle scripts paths in devcontainer configuration
This commit is contained in:
@@ -26,14 +26,13 @@
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
"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"
|
||||
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
|
||||
],
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated",
|
||||
"initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
|
||||
"onCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh onCreateCommand",
|
||||
"updateContentCommand": "/usr/local/bin/run-lifecycle-scripts.sh updateContentCommand",
|
||||
"postCreateCommand": "/usr/local/bin/run-lifecycle-scripts.sh postCreateCommand",
|
||||
"postStartCommand": "/usr/local/bin/run-lifecycle-scripts.sh postStartCommand",
|
||||
"postAttachCommand": "/usr/local/bin/run-lifecycle-scripts.sh postAttachCommand"
|
||||
// "initializeCommand": "docker pull ghcr.io/yanhao98/h-devcontainer:main;",
|
||||
"onCreateCommand": "/devcontainer/run-lifecycle-scripts.sh onCreateCommand",
|
||||
"updateContentCommand": "/devcontainer/run-lifecycle-scripts.sh updateContentCommand",
|
||||
"postCreateCommand": "/devcontainer/run-lifecycle-scripts.sh postCreateCommand",
|
||||
"postStartCommand": "/devcontainer/run-lifecycle-scripts.sh postStartCommand",
|
||||
"postAttachCommand": "/devcontainer/run-lifecycle-scripts.sh postAttachCommand"
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#!/bin/zsh -eu
|
||||
h-setup-zh-locale
|
||||
|
||||
h-setup-bun-bin
|
||||
h-setup-pnpm-bin
|
||||
# h-setup-bun-bin
|
||||
# h-setup-pnpm-bin
|
||||
|
||||
h-setup-chromium
|
||||
h-setup-desktop-lite
|
||||
# h-setup-chromium
|
||||
# h-setup-desktop-lite
|
||||
|
||||
h-install-node-modules
|
||||
h-smart-install-node-modules
|
||||
|
||||
echo "-----------------------------"
|
||||
echo "开发容器已启动并配置完成!"
|
||||
|
||||
Reference in New Issue
Block a user