This project uses Spring Boot to package the collector as an executable JAR with dependencies.
To package the collector into an executable JAR file, run:
mvn install
Copy this file to your server and launch it using:
java -JAR udeploy-collector.jar
You will need to provide an application.properties file that contains information about how to connect to the Dashboard MongoDB database instance, as well as properties the UDeploy collector requires. See the Spring Boot documentation for information about sourcing this properties file.
# Database Name
dbname=dashboard
# Database HostName - default is localhost
dbhost=localhost
# Database Port - default is 27017
dbport=27017
# MongoDB replicaset
dbreplicaset=[false if you are not using MongoDB replicaset]
dbhostport=[host1:port1,host2:port2,host3:port3]
# Database Username - default is blank
dbusername=db
# Database Password - default is blank
dbpassword=dbpass
# Logging File location
logging.file=./logs/udeploy.log
# Collector schedule (required)
udeploy.cron=0 0/5 * * * *
# UDeploy server (required) - Can provide multiple
udeploy.servers[0]=http://udeploy.company.com
# UDeploy user name (required)
udeploy.username=bobama
# UDeploy password (required)
udeploy.password=s3cr3t