Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
automatic-test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟涨钱
automatic-test
Commits
05313a15
Commit
05313a15
authored
Sep 09, 2021
by
朽木不可雕也
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加docker
parent
3e0a4f02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
Dockerfile
+6
-0
barrage-crawler-server/src/main/java/com/zhiweidata/automatictest/barragecrawlerserver/config/BaseConfig.java
+1
-1
public/src/main/resources/mybatis.xml
+1
-1
start.sh
+15
-0
No files found.
Dockerfile
0 → 100644
View file @
05313a15
FROM
openjdk:8
WORKDIR
/root
COPY
bootstrap/target/automatic-test-jar-with-dependencies.jar automatic-test-jar-with-dependencies.jar
ENV
TZ=Asia/Shanghai
ENTRYPOINT
["java", "-Xms512M", "-Xmx512M", "-jar", "automatic-test-jar-with-dependencies.jar"]
\ No newline at end of file
barrage-crawler-server/src/main/java/com/zhiweidata/automatictest/barragecrawlerserver/config/BaseConfig.java
View file @
05313a15
...
@@ -16,7 +16,7 @@ public class BaseConfig {
...
@@ -16,7 +16,7 @@ public class BaseConfig {
/**
/**
* 接口的基础url
* 接口的基础url
*/
*/
public
static
final
String
BASE_URL
=
"http://
192.168.0.119
:8080/barrage-crawler-server"
;
public
static
final
String
BASE_URL
=
"http://
barrage-crawler-server
:8080/barrage-crawler-server"
;
/**
/**
* 采集任务接口
* 采集任务接口
*/
*/
...
...
public/src/main/resources/mybatis.xml
View file @
05313a15
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<dataSource
type=
"com.zhiweidata.automatictest.publics.HikariDataSourceFactory"
>
<dataSource
type=
"com.zhiweidata.automatictest.publics.HikariDataSourceFactory"
>
<property
name=
"driver"
value=
"com.mysql.cj.jdbc.Driver"
/>
<property
name=
"driver"
value=
"com.mysql.cj.jdbc.Driver"
/>
<property
name=
"url"
<property
name=
"url"
value=
"jdbc:mysql://
192.168.0.119
:3306/automatic_test?useSSL=FALSE&serverTimezone=Asia/Shanghai"
/>
value=
"jdbc:mysql://
mysqld
:3306/automatic_test?useSSL=FALSE&serverTimezone=Asia/Shanghai"
/>
<property
name=
"username"
value=
"root"
/>
<property
name=
"username"
value=
"root"
/>
<property
name=
"password"
value=
"z199809051593"
/>
<property
name=
"password"
value=
"z199809051593"
/>
</dataSource>
</dataSource>
...
...
start.sh
0 → 100755
View file @
05313a15
#!/bin/zsh
name
=
"automatic-test"
alias
docker_local
=
"docker -H 192.168.0.119"
if
mvn clean package
-Dmaven
.test.skip
=
true
;
then
docker_local container stop
${
name
}
docker_local container rm
${
name
}
docker_local image rm
${
name
}
docker_local build
-t
${
name
}
.
docker_local container run
-d
-t
--name
=
${
name
}
-m
=
512M
--memory-swap
=
-1
\
--link
barrage-crawler-server:barrage-crawler-server
\
--link
mysqld:mysqld
\
${
name
}
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment