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:

  1. Change rolename to manager-script in tomcat-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 ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.