Code Monkey home page Code Monkey logo

vagrant-ubuntu-tomcat7's Introduction

Java/JEE development environment

This vagrant image will kick start your development in a self contained ubuntu precise32 box with all the neccessities installed. The developers just need to configure their eclipse to the shared tomcat filesystem and it's "hakuna matata" all over! Will add more instructions with a sample project in the next few days.

Pre-requisites

Ensure you have the following tools installed:

Vagrant Setup

###Do the following:

  • $ vagrant box add precise32 http://files.vagrantup.com/precise32.box

    • This will download the VM for you
  • $ git clone https://github.com/seshendra/vagrant-ubuntu-tomcat7.git

    • clone this repoistory (it's your working vagrant location)
  • If librarian-puppet is installed, grab the puppet modules:

    • $ cd vagrant-ubuntu-tomcat7/manifests
    • $ librarian-puppet install
    • $ cd ..
  • Otherwise, if librarian-puppet is not installed, clone the puppet modules

    • $ cd vagrant-ubuntu-tomcat7
    • $ git submodule init
    • $ git submodule update
  • $ vagrant up

    • brings up the VM with tomcat and java installed.
    • This can take anywhere between 20-30 minutes, so issue the command and go have some coffee or attend a meeting or watch a video while vagrant does it's job.
    • If you are in a VPN, ensure *ubuntu.com and *apache.com are open for downloads in your organization.
  • $ vagrant ssh

    • Login to your instance.

Deployment Details

  • Tomcat is set at auto-start to false
    • use sudo supervisorctl start tomcat to start tomcat
  • Vagrant is setup to map port 8080 of the VM to port 4880 on your machine
  • JMX support is enabled on the server: Vagrant is setup to map port 1099 of the VM to port 1099 on your machine, allowing for monitoring and remote deployment.
  • Tomcat is started in debug mode: Vagrant is setup to map port 8000 of the VM to port 4800 on your machine, allowing for debugging from your IDE.

Package as a box for customizing in your projects

  • After box is configured and provisioned, you can package and use this as your base box to speed up your subsequent reloads
  • vagrant package
  • mv package.box precise32-maven-tomcat7.box
  • vagrant box add precise32-maven-tomcat7 precise32-maven-tomcat7.box
  • Use precise32-maven-tomcat7 as the name of the box in your VagrantFile config.vm.box = "precise32-maven-tomcat7"

vagrant-ubuntu-tomcat7's People

Contributors

seshendra avatar shaabans avatar mrinnetmaki avatar belano avatar janwirth avatar ltheobald avatar shaked avatar tsomal avatar

Watchers

 avatar

Forkers

semap

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.