Skip to content

Commit

Permalink
FIX #1205 Error "Reference to undefined setting: makeBashScripts from…
Browse files Browse the repository at this point in the history
… dockerAdditi...
  • Loading branch information
muuki88 committed Feb 28, 2019
1 parent 8e9c837 commit 73c27ca
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ object DockerPlugin extends AutoPlugin {
dockerRmiCommand := dockerExecCommand.value ++ Seq("rmi"),
dockerBuildCommand := dockerExecCommand.value ++ Seq("build") ++ dockerBuildOptions.value ++ Seq("."),
dockerAdditionalPermissions := {
val scripts = makeBashScripts.value
val ms = (mappings in Docker).value
scripts flatMap {
case (script, _) =>
ms collect {
case (k, v) if k == script => DockerChmodType.UserGroupPlusExecute -> v
}
}
(mappings in Docker).value
.collect {
// by default we assume everything in the bin/ folder should be executable
case (_, path) if path.startsWith("bin/") => DockerChmodType.UserGroupPlusExecute -> path
// sh and windows bat files should also be marked as executable
case (_, path) if path.endsWith(".sh") => DockerChmodType.UserGroupPlusExecute -> path
case (_, path) if path.startsWith(".bat") => DockerChmodType.UserGroupPlusExecute -> path
}
},
dockerCommands := {
val strategy = dockerPermissionStrategy.value
Expand Down

0 comments on commit 73c27ca

Please sign in to comment.