在线编程IDE

code-server

https://coder.com/docs/code-server/latest

docker部署

1
2
3
4
5
6
7
8
9
mkdir -p ~/.config

docker run -it --name code-server -p 5001:8080 \
-v "$HOME/.config:/home/coder/.config" \
-v "/root/code:/home/coder/project" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
-e PASSWORD='wyy' \
codercom/code-server:latest

二进制部署

1
2
3
4
5
6
7
8
vi ~/.config/code-server/config.yaml

bind-addr: 0.0.0.0:5001
auth: password
password: wyy
cert: false

nohup ./code-server-4.4.0-linux-amd64/code-server /root/code >> log.log 2>&1 &

openvscode-server

https://github.com/gitpod-io/openvscode-server

基于微软vscode

docker部署

1
2
3
4
docker run -it --init \
-p 5002:3000 \
-v /root/openvscode-server/code:/home/workspace:cached \
gitpod/openvscode-server

二进制部署

1
./openvscode-server --host=0.0.0.0 --port=5002 --server-data-dir=./server-data --user-data-dir=./user-data --extensions-dir=./extensions-data --connection-token=wyy

OpenSumi

https://opensumi.com/zh/docs/integrate/quick-start/web

https://github.com/opensumi/core

docker部署

1
2
# 运行
docker run --rm -d -p 5002:8000/tcp ghcr.io/opensumi/opensumi-web:latest

theia

https://github.com/eclipse-theia/theia
https://github.com/theia-ide/theia-apps