Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Using a Template with Parameters 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 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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 15m
Published
Clock icon Mar 05, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. 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.
    1. Make the OpenShift_CRC working directory.
    2. Download the version of the OpenShift on CodeReady Containers binary for the operating system version you are running.
    3. Install OpenShift on CodeReady Containers.
  2. Challenge

    Process the Template to Find the Database Parameters

    1. 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.
    2. Find the:
      • database name parameter

      • database user parameter

      • database password parameter

  3. Challenge

    Create the Environment Variable File

    • After finding the database parameters:
    1. Create the zlanddb.env file.
    2. Add the database name parameter with the value of zlanddb.
    3. Add the database user parameter with the value of columbus.
    4. Add the database password parameter with the value of snowball.
  4. Challenge

    Application and Project Creation

    1. Create the Snowball project to deploy your objects to.
    2. Create the objects using the rails-postgresql-example template and feed your command the zlanddb.env file.
    3. Verify your work.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans