OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

Move war from local to server and tomcat docker


#1

Hi All,
I’m looking for the way to automate the web deployment steps and probably this is a simple thing but I’m stuck and have no way to do it.
Basically I create one war file and one web build output directory.
Using scp command I upload the local sources to my server and then (having my tomcat docker up and running) I deploy them in Tomcat using docker cp.
The point is that I run those steps manually. Yes, they are few steps but always the same steps then my intention is by creating a kind of .bat file where those commands there and then running this .bat file then let all be completed.
Obviously scp ask me for the server user and password so automate that and having the credentials encrypted would be a very very useful plus.
Thanks