Important
|
This booster requires that you use Red Hat SSO to issue access tokens for interacting with this booster and runs best when deployed on OpenShift. For more details on using this booster with a single-node OpenShift cluster, CI/CD deployments, as well as the rest of the runtime, see the Eclipse Vert.x Runtime Guide. |
If you have a single-node OpenShift cluster, such as Minishift or the Red Hat Container Development Kit, installed and running, you can also deploy your booster there. A single-node OpenShift cluster provides you with access to a cloud environment that is similar to a production environment.
Important
|
You MUST update the configuration of your single-node OpenShift cluster as detailed in the mission documentation before you can deploy this mission. |
To deploy your booster to a running single-node OpenShift cluster:
-
Log in and create your project.
$ git clone git@github.com:${loggedUser}/red-hat-forum-1 $ cd red-hat-forum-1/sso $ oc login -u developer -p developer $ oc new-project MY_PROJECT_NAME $ mvn fabric8:deploy $ java -jar target/sso-client.jar --displaySSOURL Successful oc get routes: Yes Using auth server URL: https://{sso-app-name}-MY_PROJECT_NAME.192.168.42.158.nip.io Available application endpoint names: [] $ cd ../app $ mvn clean fabric8:deploy -DSSO_AUTH_SERVER_URL={sso-app-url} -Popenshift -DskipTests $ cd ..
To interact with your booster while it’s running on a Single-node Openshift Cluster, you first need to obtain the name of the application and it’s URL:
$ java -jar sso/target/sso-client.jar --displaySSOURL
Successful oc get routes: Yes
Using auth server URL: https://{sso-app-name}-MY_PROJECT_NAME.192.168.42.158.nip.io
Available application endpoint names: [secured-vertx-rest]
$ oc get route secured-vertx-rest -o jsonpath={$.spec.host}
secured-vertx-rest-MY_PROJECT_NAME.LOCAL_OPENSHIFT_HOSTNAME
You can use the form at your application’s url or you can use the provided client:
$ java -jar target/sso-client.jar --app secured-vertx-rest