Giter Club home page Giter Club logo

java-docker-images's Introduction

Java Docker Images

Repository to test different Docker images.

Project structure:

  • hello-app: Spring Boot app with simple REST controller.
  • images: printscreens.
  • taurus: scenarios script to run Taurus stress test.
  • ab-test: script to run a monitored Apache Bench test against a local process.

Build the App

First build the app with: sh build_app.sh.

Test the app: curl http://localhost:8080/greetings

Build the Docker images

Images:

  • OpenJDK
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.openjdk_11 .
  • Open J9
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.openj9_11 .
  • Open J9 Tuned (with CDS)
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.openj9_11_tuned .
  • Open J9 Tuned (with CDS, unpacked JAR and lazy inicialization)
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.openj9_11_unpacked_lazy .
  • GraalVM 20
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.graalvm_20 .
  • GraalVM 21 - Native
    • docker build -t wesleyegberto/hello-app:minimal -f Dockerfile.graalvm_native .

Stressing and Stats

Run any of the built Java images binding the port 8080.

Then run stress test with ApacheBench: sh run_stress_with_ab.sh

Monitoring docker stats: docker stats

Here is a sample from stats output after some minutes of idle (on my machine :p).

Docker Stats Idle

Under stressing:

Docker Stats Stressing

Taurus

Run all containers: build_and_run_all.sh

Run Blazemeter container with Taurus tool: sh run_stress_with_taurus.sh

TODO

  • Spring Boot splitting the lib and classes
  • Spring Boot Native build
  • Spring Boot native with GraalVM
  • Fabric8 run-java.sh
  • Zulu VM docker image

Links

java-docker-images's People

Contributors

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