<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>3.3 Additional Labs on Application Migration and Modernization Techlab</title><link>/docs/03.0/additional/</link><description>Recent content in 3.3 Additional Labs on Application Migration and Modernization Techlab</description><generator>Hugo</generator><language>en-us</language><atom:link href="/docs/03.0/additional/index.xml" rel="self" type="application/rss+xml"/><item><title>3.3.1 Debugging</title><link>/docs/03.0/additional/debugging/debugging/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/03.0/additional/debugging/debugging/</guid><description>&lt;h2 id="task-3311-prepare-test-application"&gt;Task 3.3.1.1: Prepare Test Application&lt;/h2&gt;
&lt;p&gt;First create a project called &amp;ldquo;debugbox-&amp;lt;username&amp;gt;&amp;rdquo;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;oc new-project debugbox-&amp;lt;username&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="alert alert-primary" role="alert"&gt;


Replace &lt;strong&gt;&amp;lt;username&amp;gt;&lt;/strong&gt; with your username!

&lt;/div&gt;

&lt;h3 id="deploy-test-application"&gt;Deploy test application&lt;/h3&gt;
&lt;p&gt;A minimal container image is suitable for testing, e.g. a Go application in an empty file system (From scratch): &lt;a href="https://quay.io/puzzle/s3manager:latest" target="_blank" rel="noopener"&gt;s3manager&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;Create a new application from this image:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Image: quay.io/puzzle/s3manager:latest&lt;/li&gt;
&lt;li&gt;Environment:
&lt;ul&gt;
&lt;li&gt;ACCESS_KEY_ID=something&lt;/li&gt;
&lt;li&gt;SECRET_ACCESS_KEY=x&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;oc new-app -e &lt;span style="color:#000"&gt;ACCESS_KEY_ID&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;something -e &lt;span style="color:#000"&gt;SECRET_ACCESS_KEY&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;x quay.io/puzzle/s3manager:latest --allow-missing-images
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="alert alert-primary" role="alert"&gt;


Since &lt;a href="https://docs.openshift.com/container-platform/4.5/release_notes/ocp-4-5-release-notes.html#ocp-4-5-developer-experience" target="_blank" rel="noopener"&gt;OpenShift 4.5&lt;/a&gt;
 &lt;code&gt;oc new-app&lt;/code&gt; creates a Deployment not a DeploymentConfig.

&lt;/div&gt;

&lt;h2 id="task-3312-debugging-with-the-oc-tool"&gt;Task 3.3.1.2: Debugging with the oc tool&lt;/h2&gt;
&lt;p&gt;Try to open a remote shell in the container:&lt;/p&gt;</description></item><item><title>3.3.2 Autoscaling</title><link>/docs/03.0/additional/autoscaling/autoscaling/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/03.0/additional/autoscaling/autoscaling/</guid><description>&lt;p&gt;In this example we will scale an automated application up and down, depending on how much load the application is under. For this we use an Ruby example webapp.&lt;/p&gt;
&lt;p&gt;We first check that the project is ready for the lab.&lt;/p&gt;
&lt;p&gt;Ensure that the &lt;code&gt;LAB_USER&lt;/code&gt; environment variable is set.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#204a87"&gt;echo&lt;/span&gt; &lt;span style="color:#000"&gt;$LAB_USER&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the result is empty, set the &lt;code&gt;LAB_USER&lt;/code&gt; environment variable.&lt;/p&gt;
&lt;details data-mode="normalexpertmode" class="normalexpertmode"&gt;
 &lt;summary&gt;command hint&lt;/summary&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#204a87"&gt;export&lt;/span&gt; &lt;span style="color:#000"&gt;LAB_USER&lt;/span&gt;&lt;span style="color:#ce5c00;font-weight:bold"&gt;=&lt;/span&gt;&amp;lt;username&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;
&lt;p&gt;Create a new project to for the autoscale lab.&lt;/p&gt;</description></item><item><title>3.3.3 Kafka local</title><link>/docs/03.0/additional/kafka-local/kafka-local/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/03.0/additional/kafka-local/kafka-local/</guid><description>&lt;div class="alert alert-primary" role="alert"&gt;


Your WEB-IDE does not contain the needed tools for this lab. When you like to do it, you have to install the tools (Docker, docker-compose) on your computer.

&lt;/div&gt;

&lt;h2 id="task-3331-run-an-event-driven-application-on-your-computer"&gt;Task 3.3.3.1: Run an event driven application on your computer&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s get our kafka instance, producer and consumers up and running on your local machine.&lt;/p&gt;


&lt;div class="alert alert-primary" role="alert"&gt;


This is the correspondent lab to &lt;a href="../../../kafka/kafka/"&gt;Event driven architecture with Apache Kafka&lt;/a&gt;
 where you run the application on OpenShift.

&lt;/div&gt;

&lt;p&gt;With the following docker-compose file you can start your own local kafka cluster.&lt;/p&gt;</description></item></channel></rss>