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,5 +1,3 @@
|
|||
import dev.adamko.geedeecee.DockerComposeExec
|
||||
|
||||
plugins {
|
||||
id("kafkatorio.conventions.base")
|
||||
id("dev.adamko.geedeecee")
|
||||
|
|
@ -17,39 +15,3 @@ geedeecee {
|
|||
tasks.dockerComposeUp {
|
||||
dependsOn(":modules:infra-kafka-cluster:dockerUp")
|
||||
}
|
||||
|
||||
|
||||
val dockerBuildKafkaPipe by tasks.registering(DockerComposeExec::class) {
|
||||
|
||||
dockerComposeDir.set(geedeecee.srcDir)
|
||||
command.set("docker-compose build kafka-pipe")
|
||||
|
||||
|
||||
// inputs.property("dockerSrcDirChecksum") { dockerSrcDir.filesChecksum() }
|
||||
//
|
||||
// outputs.upToDateWhen {
|
||||
// it.inputs.properties["dockerSrcDirChecksum"] as? Long? == dockerSrcDir.filesChecksum()
|
||||
// }
|
||||
|
||||
// val imageIdFile = file("$temporaryDir/docker-image-id.txt")
|
||||
// outputs.file(imageIdFile)
|
||||
|
||||
// workingDir = dockerSrcDir.asFile
|
||||
// commandLine = parseSpaceSeparatedArgs(""" docker-compose build kafka-pipe """)
|
||||
|
||||
// doLast {
|
||||
// sync {
|
||||
// from(dockerSrcDir)
|
||||
// into(temporaryDir)
|
||||
// }
|
||||
// imageIdFile.outputStream().use { os ->
|
||||
// exec {
|
||||
// workingDir = dockerSrcDir.asFile
|
||||
// commandLine = parseSpaceSeparatedArgs(""" docker-compose images -q kafka-pipe """)
|
||||
// standardOutput = os
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
tasks.assemble { dependsOn(dockerBuildKafkaPipe) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue