kamon-io / sbt-aspectj-runner

sbt plugin for running aspectj weaver
Other
34 stars 16 forks source link

[doc] How to add javaagent when running as Docker container #32

Open berardino opened 5 years ago

berardino commented 5 years ago

It took me some time to figure out how to add the javaagent when packaging and running the application as a Docker container. I have first tried to use https://github.com/sbt/sbt-aspectj but it does not seem to support scala 2.12. Eventually I found this simple solution that works for me and I thought it could be useful to have it documented.

Perhaps this is something that this plugin could support out of the box.


This commit describes a simple solution on how to add the javaagent option to the jvm when packaging the application as a Docker container.

berardino commented 5 years ago

@ivantopo any thoughts on this PR ?