Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
bdb670e8
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
bdb670e8
编写于
6月 03, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename container and release-container to images and release-image
上级
11d79329
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
41 addition
and
21 deletion
+41
-21
.github/workflows/ci.yaml
.github/workflows/ci.yaml
+8
-8
.github/workflows/publish.yaml
.github/workflows/publish.yaml
+2
-2
ci/README.md
ci/README.md
+5
-5
ci/build/test-standalone-release.sh
ci/build/test-standalone-release.sh
+1
-1
ci/dev/fmt.sh
ci/dev/fmt.sh
+2
-0
ci/dev/lint.sh
ci/dev/lint.sh
+1
-1
ci/images/centos:7/Dockerfile
ci/images/centos:7/Dockerfile
+0
-0
ci/images/debian:8/Dockerfile
ci/images/debian:8/Dockerfile
+0
-0
ci/release-image/Dockerfile
ci/release-image/Dockerfile
+0
-0
ci/release-image/build.sh
ci/release-image/build.sh
+1
-1
ci/steps/build-docker-image.sh
ci/steps/build-docker-image.sh
+1
-1
ci/steps/release-packages.sh
ci/steps/release-packages.sh
+1
-1
doc/CONTRIBUTING.md
doc/CONTRIBUTING.md
+11
-1
doc/npm.md
doc/npm.md
+8
-0
未找到文件。
.github/workflows/ci.yaml
浏览文件 @
bdb670e8
...
...
@@ -8,7 +8,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/fmt.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/fmt.sh
...
...
@@ -17,7 +17,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/lint.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/lint.sh
...
...
@@ -26,7 +26,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/test.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/test.sh
...
...
@@ -35,7 +35,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/release.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/release.sh
-
name
:
Upload npm package artifact
...
...
@@ -55,7 +55,7 @@ jobs:
name
:
npm-package
path
:
./release-npm-package
-
name
:
Run ./ci/steps/release-packages.sh
uses
:
./ci/
container/centos
uses
:
./ci/
images/centos:7
with
:
args
:
./ci/steps/release-packages.sh
-
name
:
Upload release artifacts
...
...
@@ -75,7 +75,7 @@ jobs:
name
:
npm-package
path
:
./release-npm-package
-
name
:
Run ./ci/steps/release-packages.sh
uses
:
./ci/
container/centos
uses
:
./ci/
images/centos:7
with
:
args
:
./ci/steps/release-packages.sh
-
name
:
Upload release artifacts
...
...
@@ -116,7 +116,7 @@ jobs:
name
:
release-packages
path
:
./release-packages
-
name
:
Run ./ci/steps/build-docker-image.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/build-docker-image.sh
-
name
:
Upload release image
...
...
@@ -136,7 +136,7 @@ jobs:
name
:
release-packages
path
:
./release-packages
-
name
:
Run ./ci/steps/build-docker-image.sh
uses
:
./ci/
container/arm64
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/build-docker-image.sh
-
name
:
Upload release image
...
...
.github/workflows/publish.yaml
浏览文件 @
bdb670e8
...
...
@@ -10,7 +10,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/publish-npm.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/publish-npm.sh
env
:
...
...
@@ -22,7 +22,7 @@ jobs:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Run ./ci/steps/push-docker-manifest.sh
uses
:
./ci/
container
uses
:
./ci/
images/debian:8
with
:
args
:
./ci/steps/push-docker-manifest.sh
env
:
...
...
ci/README.md
浏览文件 @
bdb670e8
...
...
@@ -104,17 +104,17 @@ You can disable minification by setting `MINIFY=`.
- Post install script for the npm package.
- Bundled by`
yarn release
`.
## release-
container
## release-
image
This directory contains the release docker container.
This directory contains the release docker container
image
.
- [./release-
container/build.sh](./release-container
/build.sh)
- [./release-
image/build.sh](./release-image
/build.sh)
- Builds the release container with the tag `
codercom/code-server-$ARCH:$VERSION
`.
- Assumes debian releases are ready in `
./release-packages
`.
##
container
##
images
This directory contains the
container
for CI.
This directory contains the
images
for CI.
## steps
...
...
ci/build/test-standalone-release.sh
浏览文件 @
bdb670e8
...
...
@@ -15,7 +15,7 @@ main() {
./release-standalone/bin/code-server
--extensions-dir
"
$EXTENSIONS_DIR
"
--install-extension
ms-python.python
local
installed_extensions
installed_extensions
=
"
$(
./release-standalone/bin/code-server
--extensions-dir
"
$EXTENSIONS_DIR
"
--list-extensions
2>&1
)
"
if
[[
"
$installed_extensions
"
!=
"info Using config file ~/.config/code-server/config.yaml
if
[[
$installed_extensions
!=
"info Using config file ~/.config/code-server/config.yaml
ms-python.python"
]]
;
then
echo
"Unexpected output from listing extensions:"
echo
"
$installed_extensions
"
...
...
ci/dev/fmt.sh
浏览文件 @
bdb670e8
...
...
@@ -24,6 +24,8 @@ main() {
doctoc
--title
'# FAQ'
doc/FAQ.md
>
/dev/null
doctoc
--title
'# Setup Guide'
doc/guide.md
>
/dev/null
doctoc
--title
'# Install'
doc/install.md
>
/dev/null
doctoc
--title
'# npm Install Requirements'
doc/npm.md
>
/dev/null
doctoc
--title
'# Contributing'
doc/CONTRIBUTING.md
>
/dev/null
if
[[
${
CI
-
}
&&
$(
git ls-files
--other
--modified
--exclude-standard
)
]]
;
then
echo
"Files need generation or are formatted incorrectly:"
...
...
ci/dev/lint.sh
浏览文件 @
bdb670e8
...
...
@@ -7,7 +7,7 @@ main() {
eslint
--max-warnings
=
0
--fix
$(
git ls-files
"*.ts"
"*.tsx"
"*.js"
)
stylelint
$(
git ls-files
"*.css"
)
tsc
--noEmit
# See comment in ./ci/
container/Dockerfile
# See comment in ./ci/
image/debian:8
if
[[
!
${
CI
-
}
]]
;
then
shellcheck
-e
SC2046,SC2164,SC2154,SC1091,SC1090
$(
git ls-files
"*.sh"
)
fi
...
...
ci/
container/centos
/Dockerfile
→
ci/
images/centos:7
/Dockerfile
浏览文件 @
bdb670e8
文件已移动
ci/
container
/Dockerfile
→
ci/
images/debian:8
/Dockerfile
浏览文件 @
bdb670e8
文件已移动
ci/release-
container
/Dockerfile
→
ci/release-
image
/Dockerfile
浏览文件 @
bdb670e8
文件已移动
ci/release-
container
/build.sh
→
ci/release-
image
/build.sh
浏览文件 @
bdb670e8
...
...
@@ -5,7 +5,7 @@ main() {
cd
"
$(
dirname
"
$0
"
)
/../.."
source
./ci/lib.sh
docker build
-t
"codercom/code-server-
$ARCH
:
$VERSION
"
-f
./ci/release-
container
/Dockerfile
.
docker build
-t
"codercom/code-server-
$ARCH
:
$VERSION
"
-f
./ci/release-
image
/Dockerfile
.
}
main
"
$@
"
ci/steps/build-docker-image.sh
浏览文件 @
bdb670e8
...
...
@@ -5,7 +5,7 @@ main() {
cd
"
$(
dirname
"
$0
"
)
/../.."
source
./ci/lib.sh
./ci/release-
container
/build.sh
./ci/release-
image
/build.sh
mkdir
-p
release-images
docker save
"codercom/code-server-
$ARCH
:
$VERSION
"
>
"release-images/code-server-
$ARCH
-
$VERSION
.tar"
...
...
ci/steps/release-packages.sh
浏览文件 @
bdb670e8
...
...
@@ -4,7 +4,7 @@ set -euo pipefail
main
()
{
cd
"
$(
dirname
"
$0
"
)
/../.."
if
[[
"
$OSTYPE
"
==
darwin
*
]]
;
then
if
[[
$OSTYPE
==
darwin
*
]]
;
then
curl
-L
https://nodejs.org/dist/v14.4.0/node-v14.4.0-darwin-x64.tar.gz |
tar
-xz
PATH
=
"
$PATH
:node-v14.4.0-darwin-x64/bin"
fi
...
...
doc/CONTRIBUTING.md
浏览文件 @
bdb670e8
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# Contributing
-
[
Requirements
](
#requirements
)
-
[
Development Workflow
](
#development-workflow
)
-
[
Build
](
#build
)
-
[
Structure
](
#structure
)
-
[
VS Code Patch
](
#vs-code-patch
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
-
[
Detailed CI and build process docs
](
../ci
)
## Requirements
...
...
@@ -11,7 +21,7 @@ Differences:
-
We require a minimum of node v12 but later versions should work.
-
We use
[
fnpm
](
https://github.com/goreleaser/nfpm
)
to build
`.deb`
and
`.rpm`
packages.
-
We use
[
jq
](
https://stedolan.github.io/jq/
)
to build code-server releases.
-
The
[
CI container
](
../ci/
container
/Dockerfile
)
is a useful reference for all our dependencies.
-
The
[
CI container
](
../ci/
images/debian:8
/Dockerfile
)
is a useful reference for all our dependencies.
## Development Workflow
...
...
doc/npm.md
浏览文件 @
bdb670e8
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# npm Install Requirements
-
[
Ubuntu, Debian
](
#ubuntu-debian
)
-
[
Fedora, CentOS, RHEL
](
#fedora-centos-rhel
)
-
[
macOS
](
#macos
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
If you're installing the npm module you'll need certain dependencies to build
the native modules used by VS Code.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录