FlowCI / flow-platform
- четверг, 7 декабря 2017 г. в 03:16:10
Backend api, agent control and agent for flow.ci
'flow-platform' is a backend project for flow.ci, it consist three main sub projects:
Using standard maven mvn clean install -DskipTests=true
to generate packages
####Installation####
In build phase will generate three packages:
project | package | container |
---|---|---|
api | flow-api.war | tomcat 8.5 |
control-center | flow-control-center.war | tomcat 8.5 |
agent | flow-agent-{version}.jar |
flow api
Dependencies:
flow control center
Dependencies:
Configuration
Configuration file can be loaded by sequence:
FLOW_CONFIG_PATH
-Dconfig.path
/etc/flow.ci/config/app.properties
The sample properites file in :
platform-control-center/app-example.properties
Agent
Start agent by following command:
java -jar flow-platform-agent-{version}.jar {zookeeper address} {zone name} $HOSTNAME
Run ./build-docker.sh
will generate required docker images flow.ci.backend
for back-end and flow.ci.agent
for agent.
To start flow.ci backend services
docker-compose up
To start flow.ci agent
docker run --network=host -e FLOW_ZOOKEEPER_HOST=127.0.0.1:2181 -e FLOW_AGENT_ZONE=default -e FLOW_AGENT_NAME={agent name you want} flow.ci.agent
flow-platform is an open source project, sponsored by fir.im under the Apache License, Version 2.0.