These are chat archives for sbt/sbt-native-packager

3rd
Mar 2016
Gerjan
@GerjanOnline
Mar 03 2016 08:17
@muuki88 can you please look at my issue here: docker/compose#3065
the given solution is to add an extra RUN chmod +x bin/my-system inside the Dockerfile
can I do this with sbt native packers docker plugin?
Nepomuk Seiler
@muuki88
Mar 03 2016 08:20
sure. Just append it to the dockerCommands. Read the docs to learn all about the customization options :)
Gerjan
@GerjanOnline
Mar 03 2016 08:20
have you seen this problem before?
how does sbt np work with docker compose
what do you propose
Nepomuk Seiler
@muuki88
Mar 03 2016 13:51

@GerjanOnline you are the first one using native-packager and docker compose together in a build chain ( at least for me you are the first person ).
I have not much experience with docker compose ( we just use it for our dev setup ). What are you exactly trying to do?

From my experience I would suggest you build docker images with docker:publicLocal and in your docker-compose.yml you reference these images.

John Klingler
@jfklingler
Mar 03 2016 13:51
I can’t speak for the devs, but I don’t think it really should. Sbt-n-p is used to build a docker image, or at the least output a Dockerfile. Docker-compose is for defining app stacks.
Nepomuk Seiler
@muuki88
Mar 03 2016 13:52
@jfklingler yes, that was my understanding as well
John Klingler
@jfklingler
Mar 03 2016 13:56
On the other hand, if you’re just want sbt to be able to start your whole app for you (for testing, presumably), then you could easily add a task that runs docker-compose.
I personally wouldn’t try to run that from inside sbt, but I don’t see why it wouldn’t work.
Assuming your goal is something like sbt-revolver but with docker. If that’s not the case, then ignore my previous comments.