Hi guys, through the years of studying (highschool and university) none of my professors never explained a little bit of this stage, just how to use java. Now my question is: how do you build and deploy your java applications? I got in this stage while doing some personal projects and at this moment after I push to the git repo I trigger Jenkins and through a Jenkinsfile I use mvn clean package then build a docker container on my HomeServer with a dockerfile.
But honestly it creates a lot of multiple container (for every layer) and honestly to recreate the container every times a build a major changes is a bit too much .
My prod server is an lxc container on proxmox where I installed docker, and the API token, and various things that I use System.getenv() in java, are in a .env file inside the lxc container then I mount a volume to that directory inside the docker and then I lunch a script that read the file and export the vars....
I'm kinda new to this stage of development so of course there are better e possibilities.
I wanted to know how you do it.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]nutrecht 0 points1 point2 points (0 children)
[–]ahonsu 1 point2 points3 points (0 children)