Builder image for openshift/source-to-image to build container-jfr. Related to rh-jmc-team/container-jfr#1.
Clone this repo:
git clone git@github.com:tabjy/container-jfr-builder.git
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.
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.
Run your application container:
docker run -it --rm -it rh-jmc-team/container-jfr
Web interface available on http://localhost:8181.
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