Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
47d50c91
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 搜索 >>
未验证
提交
47d50c91
编写于
5月 17, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Downgrade CI to Debian 8 for glibc 2.19
Closes #1656
上级
8a3466e8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
85 addition
and
12 deletion
+85
-12
.github/workflows/ci.yaml
.github/workflows/ci.yaml
+2
-2
README.md
README.md
+1
-1
ci/README.md
ci/README.md
+3
-2
ci/container/Dockerfile
ci/container/Dockerfile
+16
-6
ci/container/arm64/Dockerfile
ci/container/arm64/Dockerfile
+53
-0
ci/container/arm64/README.md
ci/container/arm64/README.md
+6
-0
ci/dev/lint.sh
ci/dev/lint.sh
+4
-1
未找到文件。
.github/workflows/ci.yaml
浏览文件 @
47d50c91
...
...
@@ -75,7 +75,7 @@ jobs:
name
:
npm-package
path
:
./release
-
name
:
Run ./ci/steps/release-static.sh
uses
:
./ci/container
uses
:
./ci/container
/arm64
with
:
args
:
./ci/steps/release-static.sh
-
name
:
Upload release artifacts
...
...
@@ -138,7 +138,7 @@ jobs:
name
:
release-packages
path
:
./release-packages
-
name
:
Run ./ci/steps/build-docker-image.sh
uses
:
./ci/container
uses
:
./ci/container
/arm64
with
:
args
:
./ci/steps/build-docker-image.sh
-
name
:
Upload release image
...
...
README.md
浏览文件 @
47d50c91
...
...
@@ -36,7 +36,7 @@ systemctl --user enable --now code-server
### npm
We recommend installing from
`npm`
if we don't have a precompiled release for your machine's
platform or architecture.
platform or architecture
or your glibc < v2.19
.
**note:**
Installing via
`npm`
builds native modules on install and so requires C dependencies.
See
[
./doc/npm.md
](
./doc/npm.md
)
for installing these dependencies.
...
...
ci/README.md
浏览文件 @
47d50c91
...
...
@@ -23,11 +23,12 @@ Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub)
5.
Run
`yarn release:github-assets`
to download the
`release-packages`
artifact and then
upload them to the draft release.
6.
Run some basic sanity tests on one of the released packages.
7.
Publish the release.
7.
Make sure the github release tag is the commit with the artifacts.
8.
Publish the release.
1.
CI will automatically grab the artifacts and then:
1.
Publish the NPM package from
`npm-package`
.
2.
Publish the Docker Hub image from
`release-images`
.
8
.
Update the homebrew and AUR packages.
9
.
Update the homebrew and AUR packages.
## dev
...
...
ci/container/Dockerfile
浏览文件 @
47d50c91
FROM
debian
FROM
debian
:8
RUN
apt-get update
...
...
@@ -24,13 +24,23 @@ RUN apt-get install -y build-essential \
RUN
apt-get
install
-y
gettext-base
# Misc build dependencies.
RUN
apt-get
install
-y
jq git rsync
RUN
apt-get
install
-y
git rsync
# We need latest jq from debian buster for date support.
RUN
ARCH
=
"
$(
dpkg
--print-architecture
)
"
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_
$ARCH
.deb
&&
\
dpkg
-i
libonig
*
.deb
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_
$ARCH
.deb
&&
\
dpkg
-i
libjq
*
.deb
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_
$ARCH
.deb
&&
\
dpkg
-i
jq
*
.deb
&&
rm
*
.deb
# Installs shellcheck.
RUN
curl
-sSL
https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.
$(
uname
-m
)
.tar.xz |
\
tar
-xJ
&&
\
mv
shellcheck
*
/shellcheck /usr/local/bin
&&
\
rm
-R
shellcheck
*
# Unfortunately coredumps on debian:8 so disabled for now.
#RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
# tar -xJ && \
# mv shellcheck*/shellcheck /usr/local/bin && \
# rm -R shellcheck*
# Install Go dependencies
RUN
ARCH
=
"
$(
dpkg
--print-architecture
)
"
&&
\
...
...
ci/container/arm64/Dockerfile
0 → 100644
浏览文件 @
47d50c91
FROM
debian:9
RUN
apt-get update
# Needed for debian repositories added below.
RUN
apt-get
install
-y
curl gnupg
# Installs node.
RUN
curl
-sSL
https://deb.nodesource.com/setup_14.x | bash -
&&
\
apt-get
install
-y
nodejs
# Installs yarn.
RUN
curl
-sSL
https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
&&
\
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
|
tee
/etc/apt/sources.list.d/yarn.list
&&
\
apt-get update
&&
apt-get
install
-y
yarn
# Installs VS Code build deps.
RUN
apt-get
install
-y
build-essential
\
libsecret-1-dev
\
libx11-dev
\
libxkbfile-dev
# Installs envsubst.
RUN
apt-get
install
-y
gettext-base
# Misc build dependencies.
RUN
apt-get
install
-y
git rsync
# We need latest jq from debian buster for date support.
RUN
ARCH
=
"
$(
dpkg
--print-architecture
)
"
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_
$ARCH
.deb
&&
\
dpkg
-i
libonig
*
.deb
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_
$ARCH
.deb
&&
\
dpkg
-i
libjq
*
.deb
&&
\
curl
-sSOL
http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_
$ARCH
.deb
&&
\
dpkg
-i
jq
*
.deb
&&
rm
*
.deb
# Installs shellcheck.
# Unfortunately coredumps on debian:8 so disabled for now.
#RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
# tar -xJ && \
# mv shellcheck*/shellcheck /usr/local/bin && \
# rm -R shellcheck*
# Install Go dependencies
RUN
ARCH
=
"
$(
dpkg
--print-architecture
)
"
&&
\
curl
-sSL
"https://dl.google.com/go/go1.14.3.linux-
$ARCH
.tar.gz"
|
tar
-C
/usr/local
-xz
ENV
PATH=/usr/local/go/bin:/root/go/bin:$PATH
ENV
GO111MODULE=on
RUN
go get mvdan.cc/sh/v3/cmd/shfmt
RUN
go get github.com/goreleaser/nfpm/cmd/nfpm
RUN
curl
-fsSL
https://get.docker.com | sh
ci/container/arm64/README.md
0 → 100644
浏览文件 @
47d50c91
# arm64
Unfortunately there is no arm64 build of
`debian:8`
so
we need to use
`debian:9`
instead.
This is just an exact copy of
[
../Dockerfile
](
../Dockerfile
)
with the base image change.
ci/dev/lint.sh
浏览文件 @
47d50c91
...
...
@@ -7,7 +7,10 @@ main() {
eslint
--max-warnings
=
0
--fix
$(
git ls-files
"*.ts"
"*.tsx"
"*.js"
)
stylelint
$(
git ls-files
"*.css"
)
tsc
--noEmit
shellcheck
-e
SC2046,SC2164,SC2154
$(
git ls-files
"*.sh"
)
# See comment in ./ci/container/Dockerfile
if
[[
!
${
CI
-
}
]]
;
then
shellcheck
-e
SC2046,SC2164,SC2154
$(
git ls-files
"*.sh"
)
fi
}
main
"
$@
"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录