M
M
Mika Slepinin2016-11-30 19:18:22
Jenkins
Mika Slepinin, 2016-11-30 19:18:22

How to deploy .war from Jenkins directly to Docker containers?

Good evening.
How to deploy .war that I built from Jenkins (Maven-project) directly to Docker containers?
Now I do it separately, that is, first Jenkins builds, then I start building the container, and the Dockerfile says:
COPY target/webapp /usr/local/tomcat/webapps
You can add via ADD, it doesn’t really matter.
But I would like it all to be as automated and transparent as possible, so that the deployment occurs right after the assembly and all this is sent somewhere.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Podporin, 2018-07-03
@gremlin_tomsk

create a volume in tomcat/deploy/ and throw war nicknames there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question