Git Product home page Git Product logo

tomcat-vm's Introduction

Creating your own tomcat server with two applets using Vagrant and Ansible

This source code repository includes configuration files to materialize an entire server implementation with all project build artifacts in a single virtual machine (VM) image from scratch, allowing you to quickly bootstrap your own local copy of the project. The server will be completely encapsulated within the created VM image. The built-in settings support creation of a VirtualBox-based image on Ubuntu Linux, though with tuning of the base image you should be able to create images suitable for other hypervisors and cloud-based IaaS providers such as VMware and Amazon Web Services (AWS), respectively.

Dependencies

  • VirtualBox
  • Vagrant
  • Ansible

Creating Your VM

vagrant up

Your new server environment should now be running in a headless virtual machine on your local computer. The following step are performed automatically for you within the VM sandbox environment:

  • A complete Ubuntu 12.04 Server VM is launched in headless mode, bridged to whatever host network interface you've selected.
  • ip address assigned is: "192.168.33.10"
  • Oracle Java 7 is installed.
  • Apache 2 is installed
  • Tomcat 7 is installed and configured as a system service.
  • Git and Maven are installed
  • uses Maven to create a 2 spring app war files, install them in tomcat and restart tomcat access app from browser : 192.168.33.10:8080/hello-spring access second app :192.168.33.10:8080/hello-carol

Tomcat will now be running on the VM on port 8080 without the management GUI available.

Screenshots

Advanced Configuration

The Vagrant documentation is the best place to start, but a few more commands of note are:

vagrant ssh # Command-line access to the VM.
vagrant destoy # Shuts down and completely destroys the VM.

Credits

https://dzone.com/articles/vagrant

tomcat-vm's People

Contributors

carolsusieo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.