DevOps

Discovering containers loaded by Che 7

Prerequisites

You need a Kubernetes or OpenShift cluster (eg., minikube or minishift), into which you have  installed Che.

Follow the steps in this document to deploy Che. Steps below can be done in parallel to collect a list of containers involved in deployment.

Procedure

  • Once you have started your cluster, you can watch events and see which images are pulled. Start this in a console window before deploying Che to your cluster.

oc project che oc get po oc get events -w | tee /tmp/minishift.log.txt

  • Watch for lines containing the following lines to see what containers are pulled.

Successfully pulled image "..." and Container image "..." already present on machine

  • For example, this should extract just a list of pulled containers, including any duplicate re-pulls:

cat /tmp/minishift.log.txt | \ egrep "Successfully pulled image|Container image" | \ sed -e 's#.*\(Successfully pulled image\|Container image\) "\(.\+\)\".*#\2#g'

  • You can also look at the available images in the minishift docker context:

eval $(minishift docker-env) docker images

  • You can also see container events at this URL:

https://192.168.YOUR.IP:8443/console/project/che/browse/events

Published on Java Code Geeks with permission by Nick Boldt , partner at our JCG program. See the original article here: Discovering containers loaded by Che 7

Opinions expressed by Java Code Geeks contributors are their own.

Want to know how to develop your skillset to become a Java Rockstar?

Join our newsletter to start rocking!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

6. Spring Interview Questions

7. Android UI Design

 

and many more ....

 

Receive Java & Developer job alerts in your Area

I have read and agree to the terms & conditions

 

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Back to top button