maybe fix docker build for kafka pipe??
This commit is contained in:
parent
d2aa961e1a
commit
27c8088f41
1 changed files with 14 additions and 1 deletions
|
|
@ -22,7 +22,20 @@ val dockerBuildKafkaPipe by tasks.registering(Exec::class) {
|
|||
|
||||
inputs.dir(dockerSrcDir)
|
||||
|
||||
val imageIdFile = file("$temporaryDir/docker-image-id.txt")
|
||||
outputs.file(imageIdFile)
|
||||
|
||||
workingDir = dockerSrcDir.asFile
|
||||
commandLine = parseSpaceSeparatedArgs(""" docker-compose build kafka-pipe """)
|
||||
|
||||
doLast {
|
||||
imageIdFile.outputStream().use { os ->
|
||||
exec {
|
||||
workingDir = dockerSrcDir.asFile
|
||||
commandLine = parseSpaceSeparatedArgs(""" docker-compose images -q kafka-pipe """)
|
||||
standardOutput = os
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//tasks.assemble { dependsOn(dockerBuildKafkaPipe) }
|
||||
tasks.assemble { dependsOn(dockerBuildKafkaPipe) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue