Skip to content

Commit

Permalink
Give an absolute path to the entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Feb 15, 2018
1 parent 4440944 commit ba6f7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -80,7 +80,7 @@ object DockerPlugin extends AutoPlugin {
Some((version in Docker).value)
),
dockerUpdateLatest := false,
dockerEntrypoint := Seq("bin/%s" format executableScriptName.value),
dockerEntrypoint := Seq(s"${(defaultLinuxInstallLocation in Docker).value}/bin/${executableScriptName.value}"),
dockerCmd := Seq(),
dockerExecCommand := Seq("docker"),
dockerVersion := Try(Process(dockerExecCommand.value ++ Seq("version", "--format", "'{{.Server.Version}}'")).!!).toOption
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/docker/test-executableScriptName/build.sbt
Expand Up @@ -13,7 +13,7 @@ maintainer := "Gary Coady <gary@lyranthe.org>"
TaskKey[Unit]("checkDockerfile") := {
val dockerfile = IO.read((stagingDirectory in Docker).value / "Dockerfile")
assert(
dockerfile.contains("ENTRYPOINT [\"bin/docker-exec\"]\n"),
dockerfile.contains("ENTRYPOINT [\"/opt/docker/bin/docker-exec\"]\n"),
"dockerfile doesn't contain ENTRYPOINT [\"docker-exec\"]\n" + dockerfile
)
streams.value.log.success("Successfully tested control script")
Expand Down

0 comments on commit ba6f7ea

Please sign in to comment.