Deploying application in Docker container
We have already covered how to use Tomcat with Docker containers in
Chapter 5
, Installing and Configuring Docker. To deploy an application with the Deploy plugin of Jenkins, we will modify tomcat-users.xml
. Let's take it step by step:
Change
rolename
tomanager-script
intomcat-users.xml
:<?xml version='1.0' encoding='utf-8'?> <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <!-- NOTE: The sample user and role entries below are intended for use with the examples web application. They are wrapped in a comment and thus are ignored when reading this file. If you wish to configure these users for use with the examples web application, do not forget to remove the <!....> that surrounds them. You will also need...