Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
ab081cd5
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 搜索 >>
未验证
提交
ab081cd5
编写于
6月 03, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add warning when using outdated code-server script
上级
e2789608
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
29 addition
and
26 deletion
+29
-26
ci/build/code-server.sh
ci/build/code-server.sh
+23
-22
ci/dev/lint.sh
ci/dev/lint.sh
+1
-1
ci/images/centos7/Dockerfile
ci/images/centos7/Dockerfile
+5
-3
未找到文件。
ci/build/code-server.sh
浏览文件 @
ab081cd5
...
...
@@ -5,31 +5,32 @@ set -eu
# Runs code-server with the bundled node binary.
_realpath
()
{
if
[
"
$(
uname
)
"
=
"Linux"
]
;
then
readlink
-f
"
$1
"
return
fi
# See https://github.com/cdr/code-server/issues/1537 on why no realpath or readlink -f.
# See https://github.com/cdr/code-server/issues/1537
if
[
"
$(
uname
)
"
=
"Darwin"
]
;
then
script
=
"
$1
"
if
[
-L
"
$script
"
]
;
then
while
[
-L
"
$script
"
]
;
do
# We recursively read the symlink, which may be relative from $script.
script
=
"
$(
readlink
"
$script
"
)
"
cd
"
$(
dirname
"
$script
"
)
"
done
else
cd
"
$(
dirname
"
$script
"
)
"
while
[
-L
"
$(
basename
"
$script
"
)
"
]
;
do
if
[
-L
"./node"
]
&&
[
-L
"./code-server"
]
&&
[
-f
"package.json"
]
&&
cat
package.json |
grep
-q
'^ "name": "code-server",$'
;
then
echo
"***** Please use the script in bin/code-server instead!"
>
&2
echo
"***** This script will soon be removed!"
>
&2
echo
"***** See the release notes at https://github.com/cdr/code-server/releases/tag/v3.4.0"
>
&2
fi
script
=
"
$(
readlink
"
$(
basename
"
$script
"
)
"
)
"
cd
"
$(
dirname
"
$script
"
)
"
done
echo
"
$PWD
/
$(
basename
"
$script
"
)
"
return
fi
}
echo
"Unsupported OS
$(
uname
)
"
>
&2
exit
1
root
()
{
script
=
"
$(
_realpath
"
$0
"
)
"
bin_dir
=
"
$(
dirname
"
$script
"
)
"
echo
"
$(
dirname
"
$bin_dir
"
)
"
}
ROOT
=
"
$(
dirname
"
$(
dirname
"
$(
_realpath
"
$0
"
)
"
)
"
)
"
ROOT
=
"
$(
root
)
"
exec
"
$ROOT
/lib/node"
"
$ROOT
"
"
$@
"
ci/dev/lint.sh
浏览文件 @
ab081cd5
...
...
@@ -9,7 +9,7 @@ main() {
tsc
--noEmit
# See comment in ./ci/image/debian8
if
[[
!
${
CI
-
}
]]
;
then
shellcheck
-e
SC2046,SC2164,SC2154,SC1091,SC1090
$(
git ls-files
"*.sh"
)
shellcheck
-e
SC2046,SC2164,SC2154,SC1091,SC1090
,SC2002
$(
git ls-files
"*.sh"
)
fi
}
...
...
ci/images/centos7/Dockerfile
浏览文件 @
ab081cd5
FROM
centos:7
RUN
curl
-sL
https://rpm.nodesource.com/setup_14.x | bash -
&&
\
yum
install
-y
nodejs
&&
\
npm
install
-g
yarn
RUN
ARCH
=
"
$(
uname
-m
|
sed
's/86_64/64/; s/aarch64/arm64/'
)
"
&&
\
curl
-fsSL
"https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-
$ARCH
.tar.xz"
|
tar
-C
/usr/local
-xJ
&&
\
mv
/usr/local/node-v14.4.0-linux-
$ARCH
/usr/local/node-v14.4.0
ENV
PATH=/usr/local/node-v14.4.0/bin:$PATH
RUN
npm
install
-g
yarn
RUN
yum groupinstall
-y
'Development Tools'
RUN
yum
install
-y
python2 libsecret-devel libX11-devel libxkbfile-devel
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录