Blogs

Demos

Spring Boot on OpenShift 101 Quickstart SprigBoot on OpenShift

Step by Step approach to make an existing CloudFoundry ready Spring Boot application and its related workloads to OpenShift Green Cloud Demo

How to do a stateful Canary deployment using Spring Boot and Infnispan Popular Movie Store

How to do integration Test of Spring Boot Application on OpenShift Spring Boot Integration Test on OpenShift

Using Kubernetes ConfigMaps with Spring Boot Configure Kubernetes ConfigMaps with Spring Boot

Using Kubernetes Secrets with Spring Boot Configure Kubernetes Secrets with Spring Boot

Videos

Quick Start Spring Boot on OpenShift

Debug Spring Boot Application on OpenShift

Tools

There are two main tools that is always used with Spring Boot on OpenShift

You can also find related tools and downloads from https://developers.redhat.com

This page lists some commonly used commands, tips/tricks and some trouble shooting tips around these tools.

This is not meant to replace original setup guide, please refer to the original setup guides for detailed setup of these tools.

Minishift

oc login --server <your openshift master server url> -u developer

Logging into OpenShift from cli using the user developer and the default password is developer.

eval $(minishift oc-env)

Sets the right path to the OpenShift cli

minishift console

Opens the OpenShift web console in the default browser

fabric8 maven plugin

eval $(minishift docker-env)

This is very important command that you need to run before the first maven build, as this allows setting some important docker variables

mvn io.fabric8:fabric8-maven-plugin:3.5.30:setup

Sets up the fabric8 maven plugin in the current maven project.

In the above code 3.5.30 is used as version, please update to version that suits your needs
mvn fabric8:deploy

Deploys the current maven project into OpenShift

mvn fabric8:undeploy

Deploys the current maven project from OpenShift

mvn fabric8:debug

Setups up port forward to debug the current OpenShift project

mvn fabric8:run

Quick deploy the current maven project to OpenShift, runs in foreground and undeploys once CTRL + C is used to terminate current process in foreground.

Who Am I ?

I am developer :) , yes I am still a developer and will be developer for ever!

I am currently Red Hat’s Director of Developer Experience, most part of my career was with services industry helping various customers build Java based solutions.

I am the creator of vertx-maven-plugin(https://vmp.fabric8.io) and he has been an active contributor to OpenSource projects like OpenWhisk, Eclipse Che, fabric8 etc., Apart from being an OpenSource developer and contributor I love sharing my experience on building and deploying Cloud Native Java Applications on Kubernetes/OpenShift.

As Red Hat’s Director of Developer Experience I do active evangelism on Spring Boot, Kubernetes/OpenShift, Serverless(OpenWhisk), Istio and Serverless technologies like OpenWhisk by sharing his knowledge on how to build better Cloud Native Applications using these technologies.

If you are seeing this page then I am sure you are looking for Spring Boot on OpenShift resources, how-tos, demos etc.,

I will not disappoint you in this page I have index all my work related Spring Boot on Kubernetes/OpenShift like blogs, videos, demos, tools etc., I will be updating this page as I add new content.

Good Luck! and I hope this will be helpful.

If you have any comments, queries or feedback please feel freesh share them via: