Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
1558ff6d
C
code-server
项目概览
彭彦祖
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1558ff6d
编写于
8月 27, 2020
作者:
A
Anmol Sethi
提交者:
GitHub
8月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Streamline dev container workflow (#2014)
上级
ceb2265b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
16 addition
and
56 deletion
+16
-56
ci/dev/image/Dockerfile
ci/dev/image/Dockerfile
+0
-13
ci/dev/image/exec.sh
ci/dev/image/exec.sh
+11
-36
doc/CONTRIBUTING.md
doc/CONTRIBUTING.md
+5
-7
未找到文件。
ci/dev/image/Dockerfile
已删除
100644 → 0
浏览文件 @
ceb2265b
FROM
node:12
RUN
apt-get update
&&
apt-get
install
-y
\
curl
\
iproute2
\
vim
\
iptables
\
net-tools
\
libsecret-1-dev
\
libx11-dev
\
libxkbfile-dev
CMD
["/bin/bash"]
ci/dev/image/exec.sh
浏览文件 @
1558ff6d
#!/usr/bin/env bash
set
-euo
pipefail
# Opens an interactive bash session inside of a docker container
# for improved isolation during development.
# If the container exists it is restarted if necessary, then reused.
main
()
{
cd
"
$(
dirname
"
${
0
}
"
)
/../../.."
local
container_name
=
code-server-dev
if
docker inspect
$container_name
&> /dev/null
;
then
echo
"-- Starting container"
docker start
"
$container_name
"
>
/dev/null
enter
exit
0
fi
build
run
enter
}
enter
()
{
echo
"--- Entering
$container_name
"
docker
exec
-it
"
$container_name
"
/bin/bash
}
cd
"
$(
dirname
"
$0
"
)
/../../.."
source
./ci/lib.sh
run
()
{
echo
"--- Spawning
$container_name
"
docker run
\
-it
\
--
name
$container_name
\
"-v=
$PWD
:/code-server
"
\
"-w=/code-server"
\
"-p=127.0.0.1:8080:8080"
\
$(
if
[[
-t
0
]]
;
then
echo
-it
;
fi
)
\
"
$
container_name
"
--
rm
\
-v
"
$PWD
:/src
"
\
-w
/src
\
-p
127.0.0.1:8080:8080
\
"
$(
docker_build ./ci/images/debian8
)
"
\
"
$
@
"
}
build
()
{
echo
"--- Building
$container_name
"
docker build
-
t
$container_name
./ci/dev/image
>
/dev/null
docker_
build
()
{
docker build
"
$@
"
>
&2
docker build
-
q
"
$@
"
}
main
"
$@
"
doc/CONTRIBUTING.md
浏览文件 @
1558ff6d
...
...
@@ -46,14 +46,12 @@ yarn watch
To develop inside of an isolated docker container:
```
shell
./ci/dev/image/exec.sh
root@12345:/code-server# yarn
root@12345:/code-server# yarn vscode
root@12345:/code-server# yarn watch
./ci/dev/image/exec.sh yarn
./ci/dev/image/exec.sh yarn vscode
./ci/dev/image/exec.sh yarn watch
```
Any changes made to the source will be live reloaded
.
`yarn watch`
will live reload changes to the source
.
If changes are made to the patch and you've built previously you must manually
reset VS Code then run
`yarn vscode:patch`
.
...
...
@@ -78,7 +76,7 @@ node .
Build release packages (make sure you run
`./ci/steps/release.sh`
first):
```
./ci/steps/release-packages.sh
./ci/
dev/image/exec.sh ./ci/
steps/release-packages.sh
# The standalone release is in ./release-standalone
# .deb, .rpm and the standalone archive are in ./release-packages
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录