Chapter 4. Deploying a booster to OpenShift Container Platform

Prerequisites

Procedure

  1. Clone your booster Github repository, or download and extract the booster ZIP archive.
  2. Get the command containing your authentication token for using the oc CLI client with your OpenShift Container Platform Web Console:

    1. Login to your OpenShift Container Platform Web console.
    2. Click on the question mark icon in the top right-hand corner of the Web console, next to your user name.
    3. Select Command Line Tools in the drop-down menu.
    4. Find the text box that contains the oc login …​ command with the hidden token, and click the button next to it to copy its content to your clipboard.
  3. Paste the command you copied in the previous step into a terminal to authenticate your oc CLI client with your OpenShift Container Platform account by using your authentication token.

    $ oc login OCP_URL --token=MYTOKEN
  4. Create a new project.

    $ oc new-project MY_PROJECT_NAME
  5. Navigate to the root directory of your booster.
  6. Deploy your booster to OpenShift Container Platform.

    1. If your booster uses Maven:

      $ mvn clean fabric8:deploy -Popenshift
    2. If your booster uses npm.

      $ npm install && npm run openshift
  7. Open the README.adoc file in your booster’s project and follow the instructions for interacting with your booster.

Additional resources

Take a look at the different runtime guides to learn more about runtimes as well as their boosters: