tabjy / container-jfr-builder

0 stars 0 forks source link

Container JFR Builder Image

Builder image for openshift/source-to-image to build container-jfr. Related to rh-jmc-team/container-jfr#1.

Usage

  1. Clone this repo:

    git clone git@github.com:tabjy/container-jfr-builder.git
  2. Build the builder image:

    docker build -t tabjy/container-jfr-builder container-jfr-builder

    Yes, you have to do this step. This image is not published.

  3. Call s2i to build application image:

    s2i build https://github.com/rh-jmc-team/container-jfr.git tabjy/container-jfr-builder rh-jmc-team/container-jfr

    This might take quite a while, as it's going to build JMC, container-jfr-core, and container-jfr-web, too.

    Optionally, add --incremental=true flag to reuse Maven, Gradle and NPM cache from the last build.

  4. Run your application container:

    docker run -it --rm -it rh-jmc-team/container-jfr

    Web interface available on http://localhost:8181.

  5. Optionally, generate a more slim, runtime-only, image:

    docker build -t rh-jmc-team/container-jfr-runtime -f container-jfr-builder/runtime.Dockerfile container-jfr-builder

TODOs