Use Case: As a developer, I want to deploy an application into an OpenShift cluster from an IDE.
- Select
OpenShift Applicationfrom Red Hat Central. Alternately you can also right click onProject Explorerview and selectNew->Project->SelectOpenShiftWizard->OpenShift Application
- If you worked through the previous chapter, the connection information to Minishift should up on the
Sign in to OpenShiftwindow. If not, add a connection. ClickNext
- We will add an application that uses Wildfly. On the
Select templatewindow,type filter textto search forwildflyand choosewildfly:latest
-
Build Configurationpage will be displayed. Fill in this Git repo link as the value for Git URL https://github.com/VeerMuchandi/kitchensink-example. Press onNextthree times to accept the defaults for build and deployment configuration. It will take you toResource Labelsscreen. -
Let's add
app=wildflyas the label as shown below and press onFinish
-
You will see a
Resultswindow that shows all the resources created on OpenShift. PressOK
-
Now you will
Importapplication window that will pull the source code to your local machine. Choose theGit Locationor leave it as default and press onFinish
This will import source code and update maven repositories. This may take a few minutes to complete. Now you will see jboss-as-kitchensink project in the Project Explorer view.
You will also notice that the application named wildfly will be build and deployed in a few minutes.
Bonus Points Watch the build logs while the build is running and pod logs after the pod comes up.
- The
OpenShift Explorershould show running application as shown below.
- Now Right-click on the wildfly service and show in browser. You should see kitchensink deployed and running
Summary: In this chapter you have learnt to deploy an application to an OpenShift cluster using IDE.




