Skip to content

jeff-roche/ee-interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edge Enablement Interview Application

Prerequisites

  • It is preferred to be running on Linux, MacOS, or have WSL2 on Windows
  • You will need to have a recent version of go (1.21+ is preferred) in your $PATH
  • You will need the Openshift CLI (oc) in your $PATH
  • You will need an IDE such as Visual Studio Code
  • You will need access to your terminal
  • Having make installed will allow easier running of the necessary commands
  • You will need a github account

Instructions

  1. Repository Prep Fork this repository and clone your fork
$ git clone https://github.com/your-user/ee-interview.git

Once the repository has been cloned, change the git reference in config/openshift_build.yaml to match your repository

  1. Set your kubeconfig to the file provided by your interviewer(s)
$ export KUBECONFIG=kubeconfig.txt
  1. Build the application in the cluster

Note
This will build the application via the Dockerfile and push it to the cluster

## Using make
$ make oc-build

## Using oc
$ oc apply -f config/openshift_build.yaml
$ oc start-build serverapp

## You can follow along with the build log by supplying the build name to the oc command
$ oc start-build serverapp
build.build.openshift.io/serverapp-1 started

$ oc logs build/serverapp-1 --follow
  1. Deploy the application
## Using make
$ make deploy

## Using oc
$ oc apply -f config/openshift_deployment.yaml
...
$ oc expose svc/serverapp
  1. Once the application is deployed, your interviewer(s) will guide you through the next steps

  2. (Optional) Cleanup
    Your interviewer(s) will likely take care of cleanup for sake of time

## You can cleanup the deployments using the following commands:
$ oc delete -f config/
$ oc delete route serverapp

About

Used for interviews for Edge Enablement at Red Hat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published