chore: update lifecycle scripts paths in devcontainer configuration
This commit is contained in:
@@ -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 "开发容器已启动并配置完成!"
|
||||||
|
|||||||
Reference in New Issue
Block a user