Skip to content

trongbang86/auto-deploy-webapp-docker-tomcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This project uses docker to auto deploy a java web application to tomcat. You can choose to select a war file from your local file system or download from a private maven repository.

Architecture

The following components are used:

  • Java 7
  • Docker
  • Apache Tomcat

Setup

  1. You need Docker installed: Docker Setup Guide

  2. Make sure your default docker machine is listed:

    docker-machine ls

    Otherwise you have to create one

    docker-machine create -d virtualbox --engine-env KEY=VALUE default
  3. Build the image:

    This builds a docker image with tomcat set up

    $bin/build.sh
  4. Start/run the image:

    This runs the image and deploys the application war file to webapps folder under tomcat.

    $bin/start.sh

    For debugging, a temporary folder with mapped folders to logs and webapps folder under tomcat is created. You can change the location in settings.sh.

  5. Stop the image:

    This stops the running tomcat and thereby stopping the docker image.

    $bin/stop.sh

    It will also remove all temporary folders created when start command is run.

  6. Destroy the image:

    This destroys the created docker image.

    $bin/destroy.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages