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 to create a new project called Snowball. The developers are wanting a Ruby environment with a Postgresql database to create a micro-service for the tracking app. They would like you to create the environment by using the “rails-postgresql-example” template. The lead on this gave you the database and user info for the database. Create a parameters file with the database information and pass it through to the command when using the template to create the objects in your project. Let’s begin!
>**Note:** This lab is meant to be run on your local environment. This will not work in our Playground or Lab environment currently.
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.
- Process the Template to Find the Database Parameters
- Process the
rails-postgresql-example
template for to find the database name, username, and password parameters to use in the deployment. This template can be found in the Openshift Project. Find the:
database name parameter
database user parameter
database password parameter
- Process the
- Create the Environment Variable File
- After finding the database parameters:
- Create the
zlanddb.env
file. - Add the database name parameter with the value of
zlanddb
. - Add the database user parameter with the value of
columbus
. - Add the database password parameter with the value of
snowball
.
- Create the
- After finding the database parameters:
- Application and Project Creation
- Create the Snowball project to deploy your objects to.
- Create the objects using the
rails-postgresql-example template
and feed your command thezlanddb.env
file. - Verify your work.