Tidy up.
This commit is contained in:
parent
0532e8c40e
commit
c2f9980eba
@ -4,12 +4,10 @@ ext {
|
|||||||
serviceToolOpts='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000'
|
serviceToolOpts='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000'
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('dockerFile') {
|
docker {
|
||||||
buildDir.mkdir()
|
|
||||||
|
|
||||||
var df = new File(buildDir, "Dockerfile")
|
var df = new File(buildDir, "Dockerfile")
|
||||||
doLast {
|
|
||||||
df.text = """#
|
df.text = """#
|
||||||
# I'm auto-generated, please don't make changes to me or commit me to git
|
# I'm auto-generated, please don't make changes to me or commit me to git
|
||||||
#
|
#
|
||||||
# The template exists in docker-service.gradle
|
# The template exists in docker-service.gradle
|
||||||
@ -24,23 +22,11 @@ ENV JAVA_OPTS="${serviceJvmOpts} "
|
|||||||
|
|
||||||
ENTRYPOINT WMSA_HOME=/wmsa /${application.applicationName}/bin/${application.applicationName} \${arg0} \${arg1}
|
ENTRYPOINT WMSA_HOME=/wmsa /${application.applicationName}/bin/${application.applicationName} \${arg0} \${arg1}
|
||||||
"""
|
"""
|
||||||
}
|
|
||||||
it.outputs.file(df)
|
|
||||||
}
|
|
||||||
|
|
||||||
dockerPrepare {
|
dockerfile = new File(buildDir, "Dockerfile")
|
||||||
dependsOn tasks.dockerFile
|
|
||||||
}
|
|
||||||
|
|
||||||
dockerfileZip {
|
|
||||||
dependsOn tasks.dockerFile
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
docker {
|
|
||||||
dockerfile = tasks.dockerFile.outputs.files.singleFile
|
|
||||||
name = 'marginalia.nu/'+application.applicationName+':latest'
|
name = 'marginalia.nu/'+application.applicationName+':latest'
|
||||||
files tasks.distTar.outputs
|
files tasks.distTar.outputs
|
||||||
tags 'latest'
|
tags 'latest'
|
||||||
|
|
||||||
dependsOn tasks.distTar
|
dependsOn tasks.distTar
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user