update dockerfiles

- define user uid/gid
- use new geedeecee files (hopefully means smaller images, faster building)
This commit is contained in:
Adam 2022-10-22 19:55:02 +02:00
parent e370cb5ef9
commit 9b331cc105
15 changed files with 95 additions and 119 deletions

View file

@ -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")
}
}
}
}