Answer the question
In order to leave comments, you need to log in
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
create a volume in tomcat/deploy/ and throw war nicknames there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question