Skip to content

redhat-developer-demos/springboot-on-openshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Java Microservices with Spring Boot on Kubernetes/OpenShift

This repository holds the demo sources of Spring Boot on Kubernetes/OpenShift. The demos cover the basics of getting started with Spring Boot on Kubernetes/OpenShift covering the following,

Pre-requisite

Before you try the demos download and setup minishift or CDK

Start minishift

 minishift --profile springboot_msa_on_k8s --memory=4096 --cpus=2 start (1)
  1. Start a minishift with 4GB memory and 2 CPUS and profile name called springboot_msa_on_k8s

Stop minishift

 minishift stop
Tip
  • to setup DOCKER* variables in the current shell execute command $(eval minikube docker-env)

  • to setup OpenShift environment variables in the current shell execute command $(eval minikube oc-env)

Common commands

 ./mvnw fabric8:deploy (1)
 ./mvnw fabric8:undeploy (2)
 ./mvnw fabric8:resource (3)
  1. build and deploy the maven project to OpenShift/Kubernetes

  2. undeploy the maven project if it exits in OpenShift/Kubernetes

  3. Generate the Kubernetes/OpenShift manifests

About

The repository to hold demo materials of the talk done on Bangalore Kubernetes/OpenShift meetup on Jun 10 2017

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published