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.
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.