Skip to content

Commit

Permalink
New Docker build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Nov 9, 2022
1 parent f4fc33b commit 58158ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions containerrunner/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ tasks.register<Exec>("dockerPush") {
workingDir("${buildDir}/docker")
commandLine(
("docker buildx build . --platform=linux/amd64,linux/arm64/v8 " +
"--builder multiplatform " +
"--tag ${dockerName}:latest " +
"--tag ${dockerName}:${project.version} --push").split(" ")
)
Expand Down
10 changes: 10 additions & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ tasks.register<Exec>("dockerBuild") {
"-t ${dockerName}:${project.version}").split(" ")
)
}
tasks.register<Exec>("dockerPush") {
dependsOn("dockerCopyJar", "dockerCopyDockerfile")
workingDir("${buildDir}/docker")
commandLine(
("docker buildx build . --platform=linux/amd64,linux/arm64/v8 " +
"--builder multiplatform " +
"--tag ${dockerName}:latest " +
"--tag ${dockerName}:${project.version} --push").split(" ")
)
}
tasks.test {
useJUnitPlatform()
val agentJarPath = configurations["runtimeClasspath"].resolvedConfiguration.resolvedArtifacts.find {
Expand Down

0 comments on commit 58158ec

Please sign in to comment.