123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- group 'cn.tonyandmoney.tuon'
- version '0.0.1'
- dependencies {
- compile project(':tuon-core')
- compile project(':tuon-qywx')
- }
- task dockerBuilder(type: Docker) {
- registry='docker.tonyandmoney.cn'
- applicationName = 'tuonq-config'
- tagVersion = jar.getArchiveVersion()
- addFile("./${jar.getArchiveBaseName()}-${jar.getArchiveVersion()}.jar","app.jar")
- entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar",'app.jar'])
- exposePort(11000)
- doFirst {
- copy {
- from jar
- into stageDir
- }
- }
- push = true
- }
- task innerDockerBuilder(type: Docker){
- registry='registry.tuonq.cn:5000'
- applicationName = 'tuonq-config'
- tagVersion = jar.getArchiveVersion()
- addFile("./${jar.getArchiveBaseName()}-${jar.getArchiveVersion()}.jar","app.jar")
- entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar",'app.jar'])
- exposePort(11000)
- doFirst {
- copy {
- from jar
- into stageDir
- }
- }
- push = true
- }
- dockerBuilder.dependsOn(bootJar)
- innerDockerBuilder.dependsOn(bootJar)
|