GithubHelp home page GithubHelp logo

hotswapprojects / hotswap-docklands Goto Github PK

View Code? Open in Web Editor NEW
44.0 8.0 11.0 31 KB

Java application servers' docker images with DCEVM and HotswapAgent

License: Apache License 2.0

Shell 17.24% Dockerfile 82.76%

hotswap-docklands's Introduction

Hotswap-docklands

License

Adam Bien's Docklands with HotswapAgent and DCEVM.

Motivation:

Add advanced hotswap support allowing addition/modification/removal of classes/methods/fields of application running in Docker without restarts. Inject new code/resources (html/xhtml etc..) from your IDE to application running in Docker without restarts.

Quick start:

Install desired container image

Each folder represents a Dockerfile which can be built by executing the build.sh command.

Add docker container hotswap support to your project

Copy following files from reference project to your project:

  1. Dockerfile
  • modify name of ping.war to your_project.war
  • optionally modify parent image name FROM to desired container image name
  • optionally change exposed debug port 8000
  1. hotswap-agent.properties to your project's resources directory.
  2. buildAndRunDebug.sh
  • rename target image name from hotswap-ping to something different

Build & execute dockerized application using buildAndRunDebug.sh script. Next:

  • Debug your application attaching your debugger to port 8000
  • Make some advance code change in your project and build the project. Class changes are automatically promoted to running docker container via debugger. Even if the debugger is not attached, the class changes are promoted via extra_class_path, that is used prior standard classpath.

HotswapAgent allows to add a directory prior to webapp path (load webapp resources) using property webappDir. For proper functionality of webappDir it is necessary to add -v /var/run/docker.sock:/var/run/docker.sock to docker command.

hotswap-docklands's People

Contributors

skybber avatar svenruppert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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