- 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
- 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
- Set your kubeconfig to the file provided by your interviewer(s)
$ export KUBECONFIG=kubeconfig.txt
- 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
- Deploy the application
## Using make
$ make deploy
## Using oc
$ oc apply -f config/openshift_deployment.yaml
...
$ oc expose svc/serverapp
-
Once the application is deployed, your interviewer(s) will guide you through the next steps
-
(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