Highlighted
Cadet
Cadet
  • 909 Views

DO180 To Do List Application Files

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!

Tags (1)
0 Kudos
7 Replies
Highlighted
Moderator
Moderator
  • 903 Views

Re: DO180 To Do List Application Files

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

 

Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 665 Views

Re: DO180 To Do List Application Files

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!

0 Kudos
Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 653 Views

Re: DO180 To Do List Application Files

Hey @vvaldezpa we'd need more information.

What oc get events return?

0 Kudos
Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 626 Views

Re: DO180 To Do List Application Files

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!

oc_get_events.pngoc_get_events-2.png

0 Kudos
Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 622 Views

Re: DO180 To Do List Application Files

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?

0 Kudos
Reply
Loading...
Highlighted
Mission Specialist
Mission Specialist
  • 569 Views

Re: DO180 To Do List Application Files

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.

Reply
Loading...
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 556 Views

Re: DO180 To Do List Application Files

Thanks for the tipi @vvaldezpa 

0 Kudos
Reply
Loading...
Join the discussion
You must log in to join this conversation.