Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
7a11d39f
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
704
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7a11d39f
编写于
2月 24, 2020
作者:
X
xiaochun.liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docker for e2e
上级
34e0a663
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
96 addition
and
4 deletion
+96
-4
.github/workflows/ci_e2e.yml
.github/workflows/ci_e2e.yml
+53
-0
dockerfile/README.md
dockerfile/README.md
+1
-1
dockerfile/hooks/build
dockerfile/hooks/build
+13
-2
dockerfile/hooks/check
dockerfile/hooks/check
+26
-0
dockerfile/startup.sh
dockerfile/startup.sh
+3
-1
未找到文件。
.github/workflows/ci_e2e.yml
0 → 100644
浏览文件 @
7a11d39f
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
on
:
[
"
push"
,
"
pull_request"
]
env
:
DOCKER_DIR
:
./docker
LOG_DIR
:
/tmp/dolphinscheduler
name
:
e2e Test
jobs
:
build
:
name
:
Test
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
with
:
submodules
:
true
-
uses
:
actions/cache@v1
with
:
path
:
~/.m2/repository
key
:
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys
:
|
${{ runner.os }}-maven-
-
name
:
Build Image
run
:
export VERSION=latest && sh ./dockerfile/hooks/build
-
name
:
Docker Run
run
:
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -p 8888:8888 dolphinscheduler all
-
name
:
Check Server Status
run
:
sh ./dockerfile/hooks/check
-
name
:
Run e2e Test
run
:
echo "Run e2e Test"
-
name
:
Collect logs
run
:
|
mkdir -p ${LOG_DIR}
docker logs dolphinscheduler > ${LOG_DIR}/dolphinscheduler.txt
continue-on-error
:
true
dockerfile/README.md
浏览文件 @
7a11d39f
...
...
@@ -12,7 +12,7 @@ Official Website: https://dolphinscheduler.apache.org
#### You can start a dolphinscheduler instance
```
$ docker run -d --name dolphinscheduler \
$ docker run -d
it
--name dolphinscheduler \
-e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test \
-p 8888:8888 \
dolphinscheduler all
...
...
dockerfile/hooks/build
浏览文件 @
7a11d39f
...
...
@@ -18,11 +18,22 @@
echo
"------ dolphinscheduler start - build -------"
printenv
if
[[
"${VERSION}x"
=
"x"
]];
then
VERSION
=
`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'`
fi
if
[[
"${DOCKER_REPO}x"
=
"x"
]];
then
DOCKER_REPO
=
'dolphinscheduler'
fi
echo
"Version: $VERSION"
echo
"Repo: $DOCKER_REPO"
echo
-
e
"Current Directory is $(pwd)
\n
"
# maven package(Project Directory)
echo
-
e
"mvn
clean compile package -Preleas
e"
mvn
clean
compile
package
-
Preleas
e
echo
-
e
"mvn
-B clean compile package -Prelease -Dmaven.test.skip=tru
e"
mvn
-
B
clean
compile
package
-
Prelease
-
Dmaven
.
test
.
skip
=
tru
e
# mv dolphinscheduler-bin.tar.gz file to dockerfile directory
echo
-
e
"mv $(pwd)/dolphinscheduler-dist/target/apache-dolphinscheduler-incubating-${VERSION}-SNAPSHOT-dolphinscheduler-bin.tar.gz $(pwd)/dockerfile/
\n
"
...
...
dockerfile/hooks/check
0 → 100644
浏览文件 @
7a11d39f
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
echo
"------ dolphinscheduler check - server - status -------"
server_num
=
$(
docker top
`
docker container list |
grep
startup |
awk
'{print $1}'
`
|
grep
java |
grep
"dolphinscheduler"
|
awk
-F
'classpath '
'{print $2}'
|
awk
'{print $2}'
|
sort
|
uniq
-c
|
wc
-l
)
if
[
$server_num
-eq
5
]
then
echo
"Server all start successfully"
else
echo
"Server start failed "
$server_num
exit
1
fi
dockerfile/startup.sh
浏览文件 @
7a11d39f
...
...
@@ -187,4 +187,6 @@ case "$1" in
;;
esac
exec tee
${
LOGFILE
}
\ No newline at end of file
echo
"tee begin"
exec tee
${
LOGFILE
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录