Improved Dockerfile:#62
Conversation
- utilized stage build which results in much smaller result image; - removed unneeded VOLUME declaration; - copied default configuration file into result image into /app/etc; - symlinked /app/config.toml to /app/etc/config.toml for backward compatibility.
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
=========================================
Coverage 88.12% 88.12%
Complexity 208 208
=========================================
Files 39 39
Lines 522 522
Branches 35 35
=========================================
Hits 460 460
Misses 40 40
Partials 22 22Continue to review full report at Codecov.
|
|
Thanks for contributing! A few things:
|
I'd guess that most of the size is openjdk image's fault. So no point in doing multi-stage build. I'd remove it.
There's no way of setting a "default configuration file" that would work (unless you get a demo JIRA instance that we can point to). By adding a default config file, at least we would not get the current "/app/config.toml do not exists" error when starting the container without The removal of the And by the way, great work. Very useful integration. |
compatibility.