W
W
web_dev2017-12-14 16:45:50
Java
web_dev, 2017-12-14 16:45:50

Continuous Deployment/Delivery process for Spring Boot application in Docker?

Hello, please share the process - how do you deploy your Spring Boot application to Docker?
The fact is that I had a deployment process, but after updating the docker version, it simply stopped working.
The absolute path to app.jar was written in the dockerfile. The scheme was simple. Jenkins makes an app.jar and tells docker to restart the container. The container picked up a new jar during the restart and everything worked great.
After updating the docker, in the ADD command - src - the path should not be absolute, so when I restart, my container does not pick up the new app.jar.
And the task was to change the deployment process. Can anyone share how to do it somehow similar?
How does it work for you?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2017-12-17
@RGV

Try Jenkins-joboy to assemble a ready-made self-sufficient build with already added jar.

S
scor2k, 2017-12-18
@scor2k

Instead of ADD, you can try using COPY.
Well, as you have already been told, it is more correct to build the docker image first, and then restart ... ideally, use docker-compose to manage the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question