r/java • u/nfrankel • Oct 11 '20
A Hitchhiker's Guide to Containerizing (Spring Boot) Java Apps
https://blog.frankel.ch/hitchhiker-guide-containerizing-java-apps/1
u/SeasonedReason Oct 12 '20
I find using a pipeline like Azure or GitLab to be a good orchestration approach. I'm looking into whether Ansible might be useful too.
1
Oct 16 '20
honestly i dont like this article. its way too complicated and only shows the whole process for the first method - not good for noobs
0
Oct 11 '20
[deleted]
19
u/uncont Oct 11 '20
application.properties
You properties file should be part of your application layer. The application.properties would be loaded by default, and any overrides you need should be made via environment variables.
0
Oct 12 '20
[deleted]
1
u/GuyWithLag Oct 12 '20
Nah, we have 100s of variables for some applications,no issues. But you might want to have something like a configuration app or a vault for secrets.
0
Oct 12 '20
[deleted]
2
u/GuyWithLag Oct 12 '20
It all depends on the scale that you're working at.
Are you a junior member of a company with 100 engineers? Find a senior and ask them about how they do secrets and configuration management.
Are you on your own and doing test deployments? You're doing great, no need to go beyond env vars.
0
Oct 12 '20
[deleted]
2
u/GuyWithLag Oct 12 '20
Thing is, "best practices" really depends on the scale that you're working on, and on the existing culture of a company.
You don't want to ride a semi for your household's groceries.
10
u/Tillerino Oct 12 '20
Uhm, is it? The article doesn't really motivate why building the jar outside of Docker isn't perfectly fine.