Difficulty: beginner
Estimated Time: 15 minutes

In this self-paced tutorial where you will learn how to deploy via the s2i (source to image) feature one of the sample applications within the eap application server.

To complete this exercise you will import the latest image stream for eap and also load a modified template to create the application for the kitchensink sample.

Before you get started

If you are not familiar with the OpenShift Container Platform, it's worth taking a few minutes to understand the basics of the platform as well as the environment that you will be using for this self paced tutorial. Head on over to Learning OpenShift - Getting Started.

About the application server

The eap application server is the professional supported Java application server from Red Hat.

Congratulations! You just finished learning how to deploy and run an eap sample application

What's next?

I will be putting more scenarios upp on the learning system to show you other eap related samples. However, if you want to try some of the other sample applications you can amend the fields in the template to refer to another sample instead of the kitchensink. These can be edited when processing the template as per the previous tutorial page.

eap samples:

  • batch-processing
  • bmt
  • cmt
  • contacts-jquerymobile
  • ejb-in-war
  • ejb-timer
  • greeter
  • helloworld
  • helloworld-html5
  • helloworld-mdb
  • helloworld-rs
  • helloworld-singleton
  • helloworld-ws
  • hibernate
  • jaxrs-client
  • jsonp
  • jta-crash-rec
  • kitchensink
  • kitchensink-angularjs
  • kitchensink-jsp
  • kitchensink-ml
  • logging-tools
  • managed-executor-service
  • numberguess
  • payment-cdi-event
  • servlet-async
  • servlet-filterlistener
  • shrinkwrap-resolver
  • spring-greeter
  • spring-kitchensink-basic
  • spring-kitchensink-springmvctest
  • spring-resteasy
  • tasks
  • tasks-jsf
  • temperature-converter
  • thread-racing
  • websocket-client
  • websocket-endpoint
  • websocket-hello
  • xml-jaxp

For more details of the samples please look at eap samples

OpenShift Development Tooling:

OpenShift S2I References:

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Red Hat EAP CD kitchensink example

Step 1 of 3

Step 1 - Create an Initial Project

To get started, first we need to login to OpenShift.

To login to the OpenShift cluster use the following command in your Terminal:

oc login -u developer -p developer

This will log you in using the credentials:

  • Username: developer
  • Password: developer

You should see the output:

Login successful.

Now we need to create a Project space in OpenShift for our API.  In OpenShift we can create a new project by running

    oc new-project <projectname>

For out project let's create a project called eap-demo by running the command:

oc new-project eap-demo

You should see output similar to:

Now using project "eap-demo" on server "https://172.17.0.41:8443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git

to build a new example application in Ruby.

We are not going to use the web console for this course, but if you want to check anything from the web console, switch to the Browser and use the same credentials to login as you used above to login from the command line.