Welcome to the lab! Here’s the scenario, you are the OpenShift admin working at the ZLand BioTech firm where you are in charge of supporting the developers in creating an 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. Columbus has a different idea of how the application should function and is implementing his version in Ruby. Tallahassee is asking you to deploy a multi-container application with both Ruby and MySQL running in the same container for a more efficient app. So off to the races, 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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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.
- Create the Project and Application
- Create a project called
madison
. - Create the Ruby application with the MySQL image in one container using the Git repository.
- Verify your work.
- Create a project called
- Pass the MySQL Parameters to the Application Backend
- Set the following parameters for the database:
MYSQL_DATABASE=madisondb
MYSQL_USER=columbus
MYSQL_PASSWORD=snowball
- Verify your work.
- Set the following parameters for the database: