#!/usr/bin/env bash

IMAGE_NAME="quay.io/kiegroup/kogito-runtime-native"
if [[ "${JBOSS_IMAGE_NAME}" =~ "rhpam-7" ]]; then
    IMAGE_NAME="registry.redhat.io/rhpam-7/rhpam-kogito-runtime-native-rhel8"
fi

cat <<EOF
This is the ${IMAGE_NAME} 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> ${IMAGE_NAME} <application image>

Where the binary path/URL is the built artifact that you want to copy to your image.

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