fitzenterprises / eda-tutorial

Event-Driven Architecture Tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event-Driven Architecture Tutorial

Environment Setup

There are 90 available users on this OpenShift installation. Please use the Etherpad to share with the other attendees your chosen user.

Your login will be userXX, where XX ranges from 1 to 90.

The password is openshift;

Now it’s time for you to set your environment, but remember to replace userXX with your real user!:

export WORKSHOP_USER=userXX

Login to your OpenShift cluster:

oc login https://master.atlanta-890d.openshiftworkshop.com/ -u $WORKSHOP_USER -p openshift

Clone the project in your local machine:

The repository will become your working directory. All of the instructions start on this directory unless specified otherwise.

git clone https://github.com/redhat-developer-demos/eda-tutorial.git

Create the project where you will deploy your applications:

oc new-project $WORKSHOP_USER

Deploying your application to OpenShift:

First we need to tell OpenShift to create a build definition:

oc new-build --binary --name=myapp

Now every time you wish to build your application, you can run:

oc start-build myapp --from-dir=. --follow

Once you have at least one successfull build, you can ask OpenShift to run your application:

oc new-app myapp

If you wish your application to be publicly exposed, you can run:

oc expose svc/myapp

About

Event-Driven Architecture Tutorial

License:Apache License 2.0


Languages

Language:Java 80.8%Language:HTML 18.2%Language:Dockerfile 0.8%Language:Shell 0.2%