Skip to content

Commit 1b2c480

Browse files
committed
Add vscode devcontainer
Signed-off-by: Kang Huaishuai <[email protected]>
1 parent fc8b886 commit 1b2c480

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"image": "yeasy/docker_practice:latest",
3+
"mounts": [
4+
"source=dp-code-remote-cache,target=/root/.vscode-server,type=volume"
5+
],
6+
"settings": {
7+
"terminal.integrated.shell.linux": "/bin/sh"
8+
},
9+
"forwardPorts": [
10+
4000
11+
],
12+
"runArgs": [
13+
"--cap-add=SYS_ADMIN"
14+
],
15+
"postStartCommand": [
16+
"sh",
17+
"-cx",
18+
"pwd ; mkdir -p /workspaces/docker_practice/node_modules; mkdir -p /workspaces/docker_practice/_book; mount --bind /srv/gitbook/node_modules /workspaces/docker_practice/node_modules ; mount --bind /mnt /workspaces/docker_practice/_book"
19+
]
20+
}

.github/workflows/check-link.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: check-link
22

33
on:
4-
push:
5-
pull_request:
4+
# push:
5+
# pull_request:
66
workflow_dispatch:
77

88
jobs:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"scripts": {
1515
"test": "echo \"Error: no test specified\" && exit 1",
16+
"gitbook:help": "gitbook help",
17+
"gitbook:build": "gitbook build",
18+
"gitbook:serve": "gitbook serve",
1619
"vuepress:build": "npx vuepress build"
1720
},
1821
"repository": {

0 commit comments

Comments
 (0)