Answer the question
In order to leave comments, you need to log in
How to deploy jar using docker?
There is a multi-module java application. Everything is on github and is being developed by the team.
All modules are built individually using Gradle.
I want to run the resulting jar (one of the modules) on the server in a docker container.
How to properly implement such a deployment?
Answer the question
In order to leave comments, you need to log in
well, the usual CI / CD scheme - some kind of assembler (for github, this is usually https://travis-ci.org/) - compiles your jar.
then he then copies this jarnik docker image.
then sends this docker image to a repository, for example, on DockerHub, from there you can already download and run the container where you need it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question