Commit aa871f3f by amir

composers and plugin

parent 04716e8d
apply plugin: 'java'
def gitLog() { return "git log --pretty=format:'%h' -n 1".execute().text.trim().replaceAll("'", "") }
ext{
gitLog = this.&gitLog
}
repositories {
// maven { url "http://172.16.1.132:8081/repository/internal" }
}
class DockerImage {
String name;
}
task buildDockerImage(type:Exec) {
dependsOn jar
mustRunAfter jar
println 'building docker image: $dockerImage'
def commandWirhArgs = [ "docker" ,"build","-t", "$dockerImage", "."]
commandLine commandWirhArgs
}
task stopDockerCompose(type:Exec) {
//dependsOn buildDockerImage
//mustRunAfter buildDockerImage
println 'stopping docker compose...'
def commandWirhArgs = [ "docker-compose" ,"stop"]
commandLine commandWirhArgs
}
task removeDockerCompose(type:Exec) {
dependsOn stopDockerCompose
mustRunAfter stopDockerCompose
println 'removing docker compose...'
def commandWirhArgs = [ "docker-compose" ,"rm","--force"]
commandLine commandWirhArgs
}
task startDockerCompose(type:Exec) {
dependsOn jar
mustRunAfter jar
println 'running docker compose...'
// if you want to run in background add "-d"
// if you want to see logs run without -d
def commandWirhArgs = [ "docker-compose" ,"up","--force-recreate","-d"]
commandLine commandWirhArgs
}
[consul stand alone]
docker run -p 8400:8400 -p 8500:8500 -p 8600:53/udp -h node1 progrium/consul -server -bootstrap
\ No newline at end of file
......@@ -14,6 +14,11 @@ influxdb:
- "2015:2015"
volumes:
- /opt/data/influxdb:/data
log_driver: "syslog"
log_opt:
syslog-address: "tcp://172.16.1.244:518"
syslog-facility: "daemon"
syslog-format: "rfc5424"
grafana:
environment:
GF_INSTALL_PLUGINS: "grafana-piechart-panel,grafana-worldmap-panel"
......
ui-api:
environment:
IPG_ENV_PARAMS: "-DdataLogic.IpAddress=172.16.151:9009#\
-Dmongodb.port=27017#\
-Dds.ip.address=172.16.1.97#\
-Dds.ip=172.16.1.97:8080#\
-Dmclogic.sip.ip=172.16.1.151:5076#\
-Dmclogic.ip=172.16.1.151:8080#\
-Dmcweb.sip.ip=172.16.1.151:5060#\
-Dmcweb.ip=172.16.1.151:8080#\
-Dmcpresence.ip=1.1.1.1:9999#\
-Dmcpresence.sip.ip=1.1.1.1:9999#\
-Dredis.port=6379#\
-DconfigFile.location=/opt/mcx/config#\
-Dmcz.files.location=/opt/mcx"
# env_file:
# - ./common-resin.env
image: 172.16.1.212:5050/mcx/ui
ports:
- "8010:8080"
- "8443:8443"
- "9080:9080"
#entrypoint: /bin/bash
#stdin_open: true
#tty: true
public-safety:
environment:
IPG_ENV_PARAMS: "-Dds.IpAddress=172.16.1.97:8080#\
-Dredis.host=172.16.1.244#\
-Dinflux.hostport=172.16.1.244:8086"
USE_DEBUG: yes
image: 172.16.1.212:5050/mcx/public-safety
ports:
# - "8000:8000"
- "50005:50005"
ui-web:
image: 172.16.1.212:5050/mcx/ui-web
ports:
- "8040:80"
links:
- ui-api
- public-safety
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment