zalando / friboo

Utility library for writing microservices in Clojure, with support for Swagger and OAuth
Apache License 2.0
119 stars 16 forks source link

Docker image building doesn't work out of the box when using project template #77

Open immoh opened 8 years ago

immoh commented 8 years ago

There's a problem in building docker image when using project template:

I guess the obvious fix is to change lein-scm-source to generate in project root instead, or make it configurable and preconfigure it in the template. I am happy to provide a PR if you think this is the correct fix.

PetrGlad commented 8 years ago

This is more a ticket for lein-scm-source I think (so it can generate .scm in current dir). Alternatively Dockerfile can be generated on demand but It looks like unnecessarily complex solution.

immoh commented 8 years ago

Another way to fix this (suggested by @dryewo): modify template project.clj to include alias scm-source for lein with-profile uberjar scm-source. Then the file would be generated in target/uberjar and we can change the path in Dockerfile to target/uberjar/scm-source.json.