CatgirlIntelligenceAgency/docker.gradle

19 lines
514 B
Groovy
Raw Normal View History

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')
})