Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerEntrypoint has no effect in 1.1.4 and 1.1.5 #927

Closed
tsillan opened this issue Dec 11, 2016 · 3 comments
Closed

dockerEntrypoint has no effect in 1.1.4 and 1.1.5 #927

tsillan opened this issue Dec 11, 2016 · 3 comments

Comments

@tsillan
Copy link

tsillan commented Dec 11, 2016

I'm trying to override the default ENTRYPOINT of my dockerized Play Framework 2.5 application with dockerEntrypoint by setting the following in my build.sbt:

dockerEntrypoint := Seq("bin/my-app", "-Dconfig.resource=application-prod.conf")

but no matter what I do, when I run the docker:stage task the ENTRYPOINT in the generated Dockerfile is always

ENTRYPOINT ["bin/foobar"]

where foobar is the name defined for my application in build.sbt:

name := """foobar"""

I have tried both sbt-native-packager 1.1.4 and 1.1.5.

I also tried setting dockerCommands := Seq() to start from scratch as described here http://www.scala-sbt.org/sbt-native-packager/formats/docker.html#configuration but again no effect. I can change FROM, MAINTAINER and EXPOSE without problems.

Is this known to work in 1.1.4 and 1.1.5 for sure?

@tsillan tsillan closed this as completed Dec 11, 2016
@muuki88
Copy link
Contributor

muuki88 commented Dec 11, 2016

Have you found the issue?

@tsillan
Copy link
Author

tsillan commented Dec 11, 2016

An embarrassing stupid user error not related to sbt-native-packager. Therefore I closed the issue asap. Being pretty new to sbt, I did not realize it does not reload build.sbt automatically (I was running the sbt console).

@muuki88
Copy link
Contributor

muuki88 commented Dec 11, 2016

Build systems tend to be tricky in the beginning 😉
Hope native-packager doesn't get in the way.

Happy hacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants