update dockerfiles
- define user uid/gid - use new geedeecee files (hopefully means smaller images, faster building)
This commit is contained in:
parent
e370cb5ef9
commit
9b331cc105
15 changed files with 95 additions and 119 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import kafkatorio.extensions.dropDirectory
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
|
||||
|
|
@ -88,6 +89,14 @@ val runSyslogServer by tasks.registering {
|
|||
dependsOn(tasks.run)
|
||||
}
|
||||
|
||||
tasks.dockerComposeBuild {
|
||||
dependsOn(tasks.distTar)
|
||||
tasks.dockerContextPrepareFiles {
|
||||
from(zipTree(tasks.distZip.flatMap { it.archiveFile })) {
|
||||
eachFile {
|
||||
relativePath = relativePath.dropDirectory()
|
||||
|
||||
if (!isDirectory && relativePath.pathString.matches("""bin\/.+""".toRegex())) {
|
||||
name = name.replace(file.nameWithoutExtension, "run")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue