#!/bin/bash -e
cat <<EOF
This is the quay.io/kiegroup/kogito-runtime-jvm S2I image:
To use it, install S2I: https://github.com/openshift/source-to-image

Sample invocation:

s2i build <binary path/URL> -e RUNTIME_TYPE=<quarkus|springboot> quay.io/kiegroup/kogito-runtime-jvm <application image>

Where the binary path/URL is the built artifact that you want to copy to your image.
RUNTIME_TYPE is the runtime your application is based on. Default value is 'quarkus'.
Note that, for quarkus non Uberjar builds, you also must add the target/lib on the current directory
so the s2i build can copy it into the image.

You can then run the resulting image via:
docker run <application image>
EOF
