Skip to content

Commit 25b9012

Browse files
author
yang.guo
authored
Merge pull request #123 from FlowCI/develop
Develop
2 parents 4588556 + c7237bc commit 25b9012

File tree

34 files changed

+553
-300
lines changed

34 files changed

+553
-300
lines changed

Dockerfile-agent

Lines changed: 0 additions & 20 deletions
This file was deleted.

Dockerfile-backend

Lines changed: 0 additions & 30 deletions
This file was deleted.

build-docker.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

config/app-api.properties

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## flow api config file ##
2+
3+
### JDBC config ###
4+
jdbc.url = jdbc:mysql://127.0.0.1:3306/flow_api_db?useSSL=false
5+
jdbc.username = db_username
6+
jdbc.password = db_password
7+
jdbc.pool.size = 200
8+
jdbc.commit.auto = false
9+
jdbc.connection.timeout = 20000
10+
11+
### Hibernate config ###
12+
hibernate.show_sql = false
13+
hibernate.hbm2ddl.auto = validate
14+
15+
### api settings ###
16+
api.workspace = ${HOME}/flow-api-data
17+
api.zone.default = default
18+
19+
### expiration duration of token, it's in millisecond ###
20+
### 86400000 = 1000 * 60 * 60 * 24 = 1 day (will expiration after one day) ###
21+
api.user.expire = 86400000
22+
23+
### domain ###
24+
domain.api = http://localhost:8080
25+
domain.web = http://localhost:3000
26+
domain.cc = http://localhost:8080
27+
28+
task.job.toggle.execution_timeout = false
29+
## 6s expire job
30+
task.job.toggle.execution_create_session_duration = 600
31+
## 1h expire job
32+
task.job.toggle.execution_running_duration = 3600
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jdbc.connection.timeout = 20000
1010

1111
### hibernate config ###
1212
hibernate.show_sql = false
13-
hibernate.hbm2ddl.auto = update
13+
hibernate.hbm2ddl.auto = validate
1414

1515
### zookeeper config ###
16-
zk.server.embedded = false
16+
zk.server.embedded = true
1717
zk.host = 127.0.0.1:2181
1818
zk.timeout = 30
1919
zk.node.root = flow-agents
2020

2121
# zone names and cloud provider config, ex: a=xxx;b=xxx;c=xxx
22-
zk.node.zone = test-zone-1;test-zone-2;default
22+
zk.node.zone = default
2323
zone.default.agent_session_timeout = 600
2424
zone.default.default_cmd_timeout = 600
2525

@@ -34,12 +34,9 @@ queue.cmd.rabbit.name = flow-cmd-queue-default
3434
queue.cmd.idle_agent.timeout = 30
3535
queue.cmd.idle_agent.period = 5
3636

37-
### agent report url config ###
38-
agent.config.cmd_rt_log_url = ws://localhost:8088/agent/cmd/logging
39-
agent.config.cmd_report_url = http://localhost:8080/cmd/report
40-
agent.config.cmd_log_url = http://localhost:8080/cmd/log/upload
41-
42-
agent.secret_key = 1111
37+
### agent config ###
38+
agent.config.ws = ws://localhost:8088
39+
agent.config.cc = http://localhost:8080
4340

4441
### task toggles ###
4542
task.zone.toggle.keep_idle_agent = false

docker-compose.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

docker/app-api.properties

Lines changed: 0 additions & 29 deletions
This file was deleted.

docker/tomcat-users.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=${client.version}
1+
version=${agent.version}

platform-api/src/main/java/com/flow/platform/api/config/AppConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public class AppConfig extends AppConfigBase {
7171
@Value("${api.workspace}")
7272
private String workspace;
7373

74-
@Value("${platform.url}")
75-
private String platFormBaseURL;
74+
@Value("${domain.cc}")
75+
private String ccDomain;
7676

7777
@Bean
7878
public Path workspace() {
@@ -121,7 +121,7 @@ protected String getVersion() {
121121

122122
@Bean
123123
public PlatformURL platformURL() {
124-
PlatformURL platformURL = new PlatformURL(platFormBaseURL);
124+
PlatformURL platformURL = new PlatformURL(ccDomain);
125125
LOGGER.trace(platformURL.toString());
126126
return platformURL;
127127
}

0 commit comments

Comments
 (0)