- Lab
- A Cloud Guru
Using an S2I Build Strategy to Create a Build in OpenShift 4
Hey there, Gurus! Welcome to the lab, here’s the scenario! You are an admin working at the ZLand BioTech firm where you are in charge of creating early screening software that is going to revolutionize the industry for tracking symptoms of the dreaded Virus Z-19. This software is vital to the early warning system and tracking of the virus. Your job is to assist the developers in managing and creating the applications that make up the screening and tracking software. You are being asked by the Java Developer, Tallahassee to set up a Java build running a Spring Boot application. They have supplied the Git repo for the Spring Boot source code. Use the `openjdk-11` builder image and the Git repo to create a build using source-to-image. Let's begin! >**Note:** This lab is meant to be run on your local environment. This will not work in our current Cloud Playground or Lab environment.
Path Info
Table of Contents
-
Challenge
Install CodeReady Containers
Note: If you have already installed CodeReady Containers and have taken the previous lab, please move on to the next objective. If not, then proceed with this objective.
- If you don't already have a Red Hat login, register at Red Hat.
- Make the
OpenShift_CRC
working directory. - Download the version of the OpenShift on CodeReady Containers binary for the operating system version you are running.
- Install OpenShift on CodeReady Containers.
-
Challenge
Use the S2I Build Strategy
- Create a project called
twinkies
. - Use the
openjdk-11
builder image and the Spring Boot source code to create a build calledtw-tracer
.
- Create a project called
-
Challenge
Confirm Your Work
- Confirm your build has been created.
- Check if all images have been built.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.