Skip to content

Commit

Permalink
Assemble takes into account build.docker=false property
Browse files Browse the repository at this point in the history
  • Loading branch information
probakowski committed Sep 13, 2019
1 parent c512214 commit aab4e66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions distribution/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ for (final boolean oss : [false, true]) {
addBuildDockerImage(oss)
}

assemble.dependsOn "buildOssDockerImage"
assemble.dependsOn "buildDockerImage"
if (System.getProperty("build.docker") != "false") {
assemble.dependsOn "buildOssDockerImage"
assemble.dependsOn "buildDockerImage"
}

// We build the images used in compose locally, but the pull command insists on using a repository
// thus we must disable it to prevent it from doing so.
Expand Down

0 comments on commit aab4e66

Please sign in to comment.