CatgirlIntelligenceAgency/docker.gradle
Viktor Lofgren 20fc0ef13c (gradle) Add task alias 'docker' for 'jibDockerBuild'
The change also moves the jib boilerplate to an include.
2024-02-28 11:59:15 +01:00

19 lines
514 B
Groovy

jib {
from {
image = image = rootProject.ext.dockerImageBase
}
to {
image = rootProject.ext.dockerImageRegistry+'/'+project.name
tags = ['latest']
}
container {
mainClass = application.mainClass
jvmFlags = ['-Dservice.bind-address=0.0.0.0', '-Dservice.useDockerHostname=TRUE', '-Dsystem.homePath=/wmsa']
volumes = ['/wmsa/conf', '/wmsa/model', '/wmsa/data', '/var/log/wmsa']
}
}
tasks.register('docker', {
dependsOn('jibDockerBuild')
})