W
W
web_dev2017-01-30 19:28:23
Java
web_dev, 2017-01-30 19:28:23

Spring Boot Docker - REDEPLOY in Docker - Sequence?

Hello,
I have a simple question. I want to do it as simply and correctly as possible.
I have a Spring Boot Gradle project.
Screwed plugin. https://spring.io/guides/gs/spring-boot-docker/
I want to configure jenkins to auto-redeploy my application into a container.
There is a little lack of understanding in the sequence of actions / steps ...
I do a rebuild ./gradlew build buildDocker - it says that I need a docker instance on dockerHub - is this mandatory? What should I do? Maybe you can somehow get by with a local container? Before building, stop and delete the running container, and then re-create it?
Thanks for the hints..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-01-30
@fshp

Before building, stop and delete the running container, and then re-create it?

Delete a container before creating a new one. The build creates an image, not a container.
Dockerhub is optional, if there is an image with the right name locally, then docker does not go online.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question