Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
67646f79
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
67646f79
编写于
3月 12, 2020
作者:
P
Peter Pan
提交者:
GitHub
3月 12, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: stablize build process (#588)
上级
6a8d29f0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
8 deletion
+22
-8
frontend/Dockerfile
frontend/Dockerfile
+2
-2
scripts/build.sh
scripts/build.sh
+15
-0
setup.py
setup.py
+5
-6
未找到文件。
frontend/Dockerfile
浏览文件 @
67646f79
from
node:12
from
node:12
-alpine
# Create app directory
WORKDIR
/usr/src/app
...
...
@@ -17,4 +17,4 @@ COPY public public
COPY
ecosystem.config.js ecosystem.config.js
EXPOSE
8999
CMD
["yarn", "start"]
ENTRYPOINT
["yarn", "start"]
scripts/build.sh
浏览文件 @
67646f79
...
...
@@ -15,7 +15,21 @@ build_frontend_from_source() {
build_frontend
()
{
local
PACKAGE_NAME
=
"visualdl"
echo
"Donwloading npm package, please wait..."
local
PACKAGE
=
`
(
cd
$BUILD_DIR
&&
npm pack
${
PACKAGE_NAME
}
@latest
)
`
local
SHA1SUM
=
`
npm view
${
PACKAGE_NAME
}
@latest dist.shasum
`
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"Cannot get sha1sum"
exit
1
fi
echo
"
${
SHA1SUM
}
${
PACKAGE
}
"
>
"
$BUILD_DIR
/
${
PACKAGE
}
.sha1"
(
cd
$BUILD_DIR
&&
sha1sum
-c
"
${
PACKAGE
}
.sha1"
)
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"Check sum failed, download may not finish correctly."
exit
1
else
echo
"Check sum pass."
fi
tar
zxf
"
$BUILD_DIR
/
$PACKAGE
"
-C
"
$BUILD_DIR
"
}
...
...
@@ -48,6 +62,7 @@ clean_env() {
rm
-rf
$BUILD_DIR
/temp
*
rm
-rf
$BUILD_DIR
/scripts
*
rm
-rf
$BUILD_DIR
/
*
.tgz
rm
-rf
$BUILD_DIR
/
*
.sha1
rm
-rf
$BUILD_DIR
/package
}
...
...
setup.py
浏览文件 @
67646f79
...
...
@@ -109,6 +109,7 @@ scripts = ['visualdl/server/visualdl', 'demo/vdl_create_scratch_log']
if
platform
==
'win32'
:
scripts
.
append
(
'visualdl/server/visualDL.bat'
)
def
frontend_package_files
(
directory
):
paths
=
[]
for
(
path
,
directories
,
filenames
)
in
os
.
walk
(
directory
):
...
...
@@ -116,6 +117,7 @@ def frontend_package_files(directory):
paths
.
append
(
os
.
path
.
join
(
path
,
filename
))
return
paths
setup
(
name
=
"visualdl"
,
version
=
VERSION_NUMBER
,
...
...
@@ -126,12 +128,9 @@ setup(
long_description
=
read
(
'README.md'
),
install_requires
=
install_requires
,
package_data
=
{
'visualdl.server'
:
[
s
[
len
(
'visualdl/server/'
):]
for
s
in
frontend_package_files
(
'visualdl/server/dist'
)],
'visualdl'
:
libraries
,
'visualdl.python'
:
libraries
+
[
'dog.jpg'
,
'testing.wav'
]
'visualdl'
:
libraries
,
'visualdl.server'
:
[
s
[
len
(
'visualdl/server/'
):]
for
s
in
frontend_package_files
(
'visualdl/server/dist'
)],
'visualdl.python'
:
libraries
+
[
'dog.jpg'
,
'testing.wav'
]
},
packages
=
packages
,
ext_modules
=
[
Extension
(
'_foo'
,
[
'stub.cc'
])],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录