Giter Club home page Giter Club logo

easy-java-deployment-sample's Introduction

Sample of easy Java deployement

Deploy a core style application (Plain old main) and a web application (light container) in the simplest way.

Best practices

  • Do not require any dependency on target env exept Java.
  • When possible build a Plain old Main application and deploy using a Jar with all dependencies.
  • When a container is require:
    • prefer lightweight technology (servlet, ...), avoid dependency of a J2EE application server.
    • use Jetty Runner, easier than embedded style, and no lock in.
  • Deliver only one file (easier for production team).
  • Deployement should be reproducible.
  • Target environment should be easely reproducable and testable.

How to use it

mvn package
cd distrib
vagrant up

That's all! Both applications should be deployed on the VM.
You should have a "Hello World" when connecting to http://localhost:8080/ .

How it works

Core and webapp application are dummy maven archetype applications.

Distrib module will:

  • use appassembler-maven-plugin to build two deamon applications (using Java Service Wrapper).
  • on the fly download of Jetty Runner, used to run the webapp application.
  • build a tar.gz with full application installation (use maven-assembly-plugin).
  • use Vagrant to build easely target VM.
    • see Vagrantfile for reproducible VM setup.
    • see bootstrap.sh for dependencies installation on VM (java).
    • see install.sh for a custom reproducable installation of applications.

Further infos

easy-java-deployment-sample's People

Contributors

zapata avatar

Stargazers

 avatar

Watchers

 avatar  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.