Skip to content

Commit ba754b6

Browse files
committed
开发环境
1 parent a2967c3 commit ba754b6

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.cnb.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,17 @@
1313
username: ${CHERRY_MARKDOWN_USERNAME}
1414
password: ${CHERRY_MARKDOWN_GITHUB_TOKEN}
1515
insecure_skip_verify: true
16-
timeout: 300
16+
timeout: 300
17+
$:
18+
vscode:
19+
- docker:
20+
build: .cnb/Dockerfile
21+
volumes:
22+
- node_modules:cow
23+
services:
24+
- vscode
25+
- docker
26+
stages:
27+
- name: install dependencies
28+
script:
29+
- yarn install

.cnb/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:22
2+
3+
RUN curl -fsSL https://code-server.dev/install.sh | sh \
4+
&& code-server --install-extension cnbcool.cnb-welcome \
5+
&& code-server --install-extension redhat.vscode-yaml \
6+
&& code-server --install-extension dbaeumer.vscode-eslint \
7+
&& code-server --install-extension waderyan.gitblame \
8+
&& code-server --install-extension mhutchie.git-graph \
9+
&& code-server --install-extension donjayamanne.githistory \
10+
&& code-server --install-extension tencent-cloud.coding-copilot \
11+
&& echo done
12+
13+
# 安装 ssh 服务,用于支持 VSCode 等客户端通过 Remote-SSH 访问开发环境
14+
RUN apt-get update && apt-get install -y wget unzip openssh-server

0 commit comments

Comments
 (0)