Sign inSign up

pmgysel/spring-boot-app

By pmgysel

•Updated about 6 years ago

Example SpringBoot app that can be deployed on OpenShift cluster

Image
1

500K+

pmgysel/spring-boot-app repository overview

⁠SpringBoot app

Example SpringBoot app that can be deployed on OpenShift cluster.

⁠Run the image locally

$ docker pull pmgysel/spring-boot-app:0.0.1
$ docker run -p 8080:8080 pmgysel/spring-boot-app:0.0.1

⁠Build the image yourself

Download java repo:

$ git clone https://github.com/pmgysel/cloud-stack_spring-boot-app.git
$ cd cloud-stack_spring-boot-app

Build Docker image:

$ docker build -t pmgysel/spring-boot-app:0.0.1 .

Start Docker container:

$ docker run -p 8080:8080 pmgysel/spring-boot-app:0.0.1

⁠Deploy the image on OpenShift

Login to OpenShift using the CLI "oc" tool.

Choose your preferred OS project

$ oc project <your-favorite-project>

Create a new Deployment & Service:

$ oc new-app pmgysel/spring-boot-app:0.0.1

Expose the running container to the outside world:

$ oc expose svc/spring-boot-app

Tag summary

Content type

Image

Digest

Size

111.6 MB

Last updated

about 6 years ago

docker pull pmgysel/spring-boot-app:0.0.1