I've been going through DO180 - Introduction to Containers, Kubernetes, and Red Hat OpenShift. To get more practice and not burn up my online lab hours I created a local environment for doing testing and the labs. So far it's been fairly simple to recreate the labs through chapter 6.
Chapter 7 deals with multi-container apps and uses a To Do List sample application. Unfortunately that's been somewhat of a struggle to replicate in my local environment. Are the Dockerfiles and other files available anywhere on Github or someplace? I didn't think it was appropriate to copy them directly from the online lab environment.
Thanks!
Not exactly the same as from DO180, but the OpenShift development course (DO288) has its sample applications on a public repository at GitHub that you can fork and experiment with. See:
https://github.com/RedHatTraining/DO288-apps
Because all sample apps are on the same GitHub repository, you need to pass the --context-dir option to 'oc new-app' for example:
$ oc new-app --name=test --context-dir=php-helloworld \
php:7.2~https://github.com/RedHatTraining/DO288-apps
Hi!
I have had some problems with chapter 7. Exercise: Creating an application with a Template.
After executing the 4.4 task, when I go an sche for my pods, none of them would start :-(
I moved one to do the next Lab: Deploying Multi-Container Applications, the same happens after the oc process.: the pods won't start.
Did you have any luck with this.
Thanks in advance!
Hey @vvaldezpa we'd need more information.
What oc get events return?
Hi @Razique ,
So I ran the "Guided Exercise: Creation an Application with a Template" for the 3rd time, and the results are the same.
Since the Pods won't start, the exercise shows "FAIL" as you can see.
Any suggestions?
Note: Please ignore the "dot" before the "57" in "do180-mysql.57-rhel7". I edited the JSON file this time, to macht the name, since I already have the repository in quay.io with the "dash".
Thanks in advanced!
It looks like OpenShift is not able to pull the image. I don't know this newer version of the course really well, but can you try to do a:
podman pull quay.io/mrstech/do180-todonodejs
from workstation?
Hi!
I figure out what the issue was.
There is a warning on the exercise indicating:
Make sure both repositories are public in quay.io so OpenShift can get the images from it. Refer to the Repositories Visibilit ysection of the Appendix C to read details about how change repository visibility.
Repositories created by pushing images to quay.io are private by default. In order OpenShift (or any other tool) to fetch those images you can make the repository public, so no authentication is required.
I hope this help other.
Thanks for the tipi @vvaldezpa
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.