Skip to content

Commit

Permalink
Add vscode devcontainer
Browse files Browse the repository at this point in the history
Signed-off-by: Kang Huaishuai <[email protected]>
  • Loading branch information
khs1994 committed Oct 13, 2020
1 parent fc8b886 commit 1b2c480
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"image": "yeasy/docker_practice:latest",
"mounts": [
"source=dp-code-remote-cache,target=/root/.vscode-server,type=volume"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/sh"
},
"forwardPorts": [
4000
],
"runArgs": [
"--cap-add=SYS_ADMIN"
],
"postStartCommand": [
"sh",
"-cx",
"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"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/check-link.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: check-link

on:
push:
pull_request:
# push:
# pull_request:
workflow_dispatch:

jobs:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gitbook:help": "gitbook help",
"gitbook:build": "gitbook build",
"gitbook:serve": "gitbook serve",
"vuepress:build": "npx vuepress build"
},
"repository": {
Expand Down

0 comments on commit 1b2c480

Please sign in to comment.