<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0">

<channel>
	<title>Ramzi's Blog</title>
	<atom:link href="https://ramzibot.wordpress.com/feed/" rel="self" type="application/rss+xml"/>
	<link>https://ramzibot.wordpress.com</link>
	<description>An other IT blog!</description>
	<lastBuildDate>Sat, 04 Jul 2020 11:26:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<site xmlns="com-wordpress:feed-additions:1">16628306</site><cloud domain="ramzibot.wordpress.com" path="/?rsscloud=notify" port="80" protocol="http-post" registerProcedure=""/>
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>Ramzi's Blog</title>
		<link>https://ramzibot.wordpress.com</link>
	</image>
	<atom:link href="https://ramzibot.wordpress.com/osd.xml" rel="search" title="Ramzi's Blog" type="application/opensearchdescription+xml"/>
	<atom:link href="https://ramzibot.wordpress.com/?pushpress=hub" rel="hub"/>
	<item>
		<title>A first experience with Azure IoT, Docker and Raspberry Pi 4</title>
		<link>https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/</link>
					<comments>https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 23:04:34 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=965</guid>

					<description><![CDATA[Hi friends, I obtained recently a Raspberry Pi 4 and started working on small exercices from this wonderful book : Learn Robotics with Raspberry Pi. I discoverd the power of Python and its simplicity and I am in love with this new language. On the other hand, Azure IoT Hub is fascinating me and I &#8230; <a href="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/" class="more-link">Continue reading <span class="screen-reader-text">A first experience with Azure IoT, Docker and Raspberry Pi&#160;4</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi friends,</p>
<p>I obtained recently a Raspberry Pi 4 and started working on small exercices from this wonderful book : <a href="https://www.amazon.fr/Learn-Robotics-Raspberry-Pi-Thinking/dp/1593279205" target="_blank" rel="noopener">Learn Robotics with Raspberry Pi</a>.</p>
<p>I discoverd the power of Python and its simplicity and I am in love with this new language.</p>
<p>On the other hand, Azure IoT Hub is fascinating me and I decided to connect my Raspberry Pi to Azure making it an Azure IoT Hub Edge device. <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=231481">This guide</a> is well done in order to achieve my objective.</p>
<p>And I can see my Raspberry Pi connetced to Aure IoT Hub:</p>
<p><img data-attachment-id="968" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/iotedge/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png" data-orig-size="1902,717" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="IotEdge" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=700" class="alignnone size-full wp-image-968" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=700" alt="IotEdge"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png 1902w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=150&amp;h=57 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=300&amp;h=113 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=768&amp;h=290 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=1024&amp;h=386 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png?w=1440&amp;h=543 1440w" sizes="(max-width: 1902px) 100vw, 1902px" /></p>
<p>Make sure that the runtime response is OK!</p>
<p>Dokcer is here! Yes, everything running inside your edge device is a module in a container. After joining your device to Azure IoT hub, you have by default 2 modules: the agent and the runtime.</p>
<p><img data-attachment-id="970" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/iotmodules/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png" data-orig-size="1730,606" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="iotmodules" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=700" class="alignnone size-full wp-image-970" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=700" alt="iotmodules"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png 1730w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=150&amp;h=53 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=300&amp;h=105 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=768&amp;h=269 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=1024&amp;h=359 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png?w=1440&amp;h=504 1440w" sizes="(max-width: 1730px) 100vw, 1730px" /></p>
<p>Both of them are running in containers:</p>
<p><img data-attachment-id="971" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/iotmodulescontainers/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png" data-orig-size="1690,71" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="iotmodulescontainers" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=700" class="alignnone size-full wp-image-971" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=700" alt="iotmodulescontainers"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png 1690w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=150&amp;h=6 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=300&amp;h=13 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=768&amp;h=32 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=1024&amp;h=43 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png?w=1440&amp;h=60 1440w" sizes="(max-width: 1690px) 100vw, 1690px" /></p>
<p><img loading="lazy" data-attachment-id="972" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/iotmodulescontainers1/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png" data-orig-size="924,71" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="iotmodulescontainers1" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=700" class="alignnone size-full wp-image-972" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=700" alt="iotmodulescontainers1"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png 924w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=150&amp;h=12 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=300&amp;h=23 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png?w=768&amp;h=59 768w" sizes="(max-width: 924px) 100vw, 924px" /></p>
<p>Now, let&#8217;s get a small project to play with. We want to implement an IoT edge device with a temperature module. Another module will be also developed in order to receive messages from the temperature module and manages two leds. The red led is on when the temperatre is above a threshold. Otherwise, the green led is on. The latest module will also send messages to Azure IoT hub for analysis. (This is another topic that would be covered in a next post incha Ellah).</p>
<p>In my case, I used the simulated temperature module and developed a custom module that intercepts messages from the first module. To manage the leds, I have used this circuit based on a breadboard, 2 leds and 2 resistors:</p>
<p><img loading="lazy" data-attachment-id="974" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/gpio-pinout-diagram-2/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png" data-orig-size="2064,1185" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="GPIO-Pinout-Diagram-2" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=700" class="alignnone size-full wp-image-974" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=700" alt="GPIO-Pinout-Diagram-2"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png 2064w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=150&amp;h=86 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=300&amp;h=172 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=768&amp;h=441 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=1024&amp;h=588 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png?w=1440&amp;h=827 1440w" sizes="(max-width: 2064px) 100vw, 2064px" /></p>
<p><img loading="lazy" data-attachment-id="991" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/exif_jpeg_420-5/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg" data-orig-size="486,648" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;Artist&quot;,&quot;camera&quot;:&quot;HUAWEI Y336-U02&quot;,&quot;caption&quot;:&quot;Exif_JPEG_420&quot;,&quot;created_timestamp&quot;:&quot;1582705245&quot;,&quot;copyright&quot;:&quot;Copyright,Spreadtrum,2011&quot;,&quot;focal_length&quot;:&quot;3.75&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;Exif_JPEG_420&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="Exif_JPEG_420" data-image-description="" data-image-caption="&lt;p&gt;Exif_JPEG_420&lt;/p&gt;
" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg?w=225" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg?w=486" class="alignnone size-full wp-image-991" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg?w=700" alt="Exif_JPEG_420"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg 486w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg?w=113&amp;h=150 113w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg?w=225&amp;h=300 225w" sizes="(max-width: 486px) 100vw, 486px" /></p>
<p>Let&#8217;s develop our custom module following the steps described in this <a href="https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-python-module" target="_blank" rel="noopener">article</a>. Some changes are necessary:</p>
<ul>
<li>In the main.py file, we have to add these imports and define the leds variables</li>
</ul>
<blockquote>
<div>
<div>import time</div>
<div>import gpiozero</div>
<div>import os</div>
<div>import sys</div>
<div>import asyncio</div>
<div>from six.moves import input</div>
<div>import threading</div>
<div>from azure.iot.device.aio import IoTHubModuleClient</div>
<div>import json</div>
</div>
<div></div>
<div>
<div>
<div>led1 = gpiozero.LED(8)</div>
<div>led2 = gpiozero.LED(21)</div>
</div>
</div>
</blockquote>
<ul>
<li>In the main.py file, I changed the code as follows to manage my leds:</li>
</ul>
<blockquote>
<ol>
<li>
<div>
<div># define behavior for receiving an input message on input1</div>
<div>        async def input1_listener(module_client):</div>
<div>           global RECEIVED_MESSAGES</div>
<div>           global TEMPERATURE_THRESHOLD</div>
<div>           while True:</div>
<div>            try:</div>
<div>                time.sleep(100)</div>
<div>                RECEIVED_MESSAGES=0</div>
<div>                input_message = await module_client.receive_message_on_input(&#8220;input1&#8221;)  # blocking call</div>
<div>                message = input_message.data</div>
<div>                size = len(message)</div>
<div>                message_text = message.decode(&#8216;utf-8&#8217;)</div>
<div>                print ( &#8221;    Data: &lt;&lt;&lt;%s&gt;&gt;&gt; &amp; Size=%d&#8221; % (message_text, size) )</div>
<div>                custom_properties = input_message.custom_properties</div>
<div>                #print ( &#8221;    Properties: %s&#8221; % custom_properties )</div>
<div>                RECEIVED_MESSAGES += 1</div>
<div>                print ( &#8221;    Total messages received: %d&#8221; % RECEIVED_MESSAGES )</div>
<div>                data = json.loads(message_text)</div>
<div>                await module_client.send_message_to_output(input_message, &#8220;output1&#8221;)</div>
<div>                if &#8220;ambient&#8221; in data and &#8220;temperature&#8221; in data[&#8220;ambient&#8221;] and data[&#8220;ambient&#8221;][&#8220;temperature&#8221;] &gt; TEMPERATURE_THRESHOLD:</div>
<div>                    custom_properties[&#8220;MessageType&#8221;] = &#8220;Alert&#8221;</div>
<div>                    print ( &#8220;ambient temperature %s exceeds threshold %s&#8221; % (data[&#8220;ambient&#8221;][&#8220;temperature&#8221;], TEMPERATURE_THRESHOLD))</div>
<div>                    led1.on()</div>
<div>                    led2.off()</div>
<div>                    await module_client.send_message_to_output(&#8220;Red LED is ON!&#8221;, &#8220;output1&#8221;)</div>
<div>                elif &#8220;ambient&#8221; in data and &#8220;temperature&#8221; in data[&#8220;ambient&#8221;] and data[&#8220;ambient&#8221;][&#8220;temperature&#8221;] &lt;= TEMPERATURE_THRESHOLD:</div>
<div>                    led2.on()</div>
<div>                    led1.off()</div>
<div>                    await module_client.send_message_to_output(&#8220;Green LED is ON!&#8221;, &#8220;output1&#8221;)</div>
<div>                else :</div>
<div>                    led2.on()</div>
<div>                    led1.on()</div>
<div>                    await module_client.send_message_to_output(&#8220;Green &amp; Red LEDs are ON!&#8221;, &#8220;output1&#8221;)</div>
<div>            except Exception as ex:</div>
<div>                print ( &#8220;Unexpected error in input1_listener: %s&#8221; % ex )</div>
</div>
</li>
</ol>
</blockquote>
<ul>
<li>Two packages are added to the requirements.txt file:</li>
</ul>
<blockquote>
<div>
<div>azure-iot-device~=2.0.0</div>
<div>gpiozero==1.5.1</div>
<div>RPi.GPIO==0.7.0</div>
</div>
</blockquote>
<ul>
<li>The DockerFile file has to be changed as follows (the gcc is used to compile rpi.gpio python library) :</li>
</ul>
<blockquote><p>FROM arm32v7/python:3.7-slim-buster</p>
<p>WORKDIR /app</p>
<p>COPY requirements.txt ./<br />
RUN apt-get update<br />
RUN apt-get -y install gcc<br />
RUN pip install -r requirements.txt</p>
<p>COPY . .</p>
<p>CMD [ &#8220;python3&#8221;, &#8220;-u&#8221;, &#8220;./main.py&#8221; ]</p></blockquote>
<ul>
<li>Finally, under the custom module, we hve to cofigure the privileged mode:</li>
</ul>
<blockquote>
<div>
<div>&#8220;modules&#8221;: {</div>
<div>          &#8220;SampleModule&#8221;: {</div>
<div>            &#8220;version&#8221;: &#8220;1.0&#8221;,</div>
<div>            &#8220;type&#8221;: &#8220;docker&#8221;,</div>
<div>            &#8220;status&#8221;: &#8220;running&#8221;,</div>
<div>            &#8220;restartPolicy&#8221;: &#8220;always&#8221;,</div>
<div>            &#8220;settings&#8221;: {</div>
<div>              &#8220;image&#8221;: &#8220;${MODULES.SampleModule}&#8221;,</div>
<div>              &#8220;createOptions&#8221;: {</div>
<div>                &#8220;HostConfig&#8221;: {</div>
<div>                  &#8220;Privileged&#8221;: true</div>
<div>               }</div>
<div>              }</div>
<div>            }</div>
<div>          },</div>
</div>
</blockquote>
<div>By running the the build and push action,</div>
<div></div>
<div><img loading="lazy" data-attachment-id="981" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/buildpush/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png" data-orig-size="492,606" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="BuildPush" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png?w=244" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png?w=492" class="alignnone size-full wp-image-981" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png?w=700" alt="BuildPush"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png 492w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png?w=122&amp;h=150 122w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png?w=244&amp;h=300 244w" sizes="(max-width: 492px) 100vw, 492px" /></div>
<div></div>
<div>an image will be built according to the Dockerfile and pushed to Azure Container Registry:</div>
<div></div>
<div><img loading="lazy" data-attachment-id="980" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/rpi1/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="RPI1" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=700" class="alignnone size-full wp-image-980" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=700" alt="RPI1"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></div>
<div></div>
<div>After deploying the modules, we can see the modules in running state:</div>
<div></div>
<div><img loading="lazy" data-attachment-id="982" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/rpi2/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="RPI2" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=700" class="alignnone size-full wp-image-982" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=700" alt="RPI2"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></div>
<div><img loading="lazy" data-attachment-id="983" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/rpi3/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="RPI3" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=700" class="alignnone size-full wp-image-983" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=700" alt="RPI3"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></div>
<div></div>
<div>The new containers running the modules are created:</div>
<div></div>
<div><img loading="lazy" data-attachment-id="994" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/rpi5/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png" data-orig-size="1270,124" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="RPI5" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=700" class="alignnone size-full wp-image-994" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=700" alt="RPI5"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png 1270w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=150&amp;h=15 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=300&amp;h=29 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=768&amp;h=75 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png?w=1024&amp;h=100 1024w" sizes="(max-width: 1270px) 100vw, 1270px" /></div>
<div></div>
<div>What about leds? It s working like a charm (as expected, the red led is on when the temperature is above the threshold):</div>
<div></div>
<div><img loading="lazy" data-attachment-id="992" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/exif_jpeg_420-6/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg" data-orig-size="486,648" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;Artist&quot;,&quot;camera&quot;:&quot;HUAWEI Y336-U02&quot;,&quot;caption&quot;:&quot;Exif_JPEG_420&quot;,&quot;created_timestamp&quot;:&quot;1582706319&quot;,&quot;copyright&quot;:&quot;Copyright,Spreadtrum,2011&quot;,&quot;focal_length&quot;:&quot;3.75&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;Exif_JPEG_420&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="Exif_JPEG_420" data-image-description="" data-image-caption="&lt;p&gt;Exif_JPEG_420&lt;/p&gt;
" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg?w=225" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg?w=486" class="alignnone size-full wp-image-992" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg?w=700" alt="Exif_JPEG_420"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg 486w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg?w=113&amp;h=150 113w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg?w=225&amp;h=300 225w" sizes="(max-width: 486px) 100vw, 486px" /></div>
<div></div>
<div>The green led is on when the temperature is less than the threshold:</div>
<div></div>
<div><img loading="lazy" data-attachment-id="993" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/exif_jpeg_420-7/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg" data-orig-size="486,648" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;Artist&quot;,&quot;camera&quot;:&quot;HUAWEI Y336-U02&quot;,&quot;caption&quot;:&quot;Exif_JPEG_420&quot;,&quot;created_timestamp&quot;:&quot;1582706639&quot;,&quot;copyright&quot;:&quot;Copyright,Spreadtrum,2011&quot;,&quot;focal_length&quot;:&quot;3.75&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;Exif_JPEG_420&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="Exif_JPEG_420" data-image-description="" data-image-caption="&lt;p&gt;Exif_JPEG_420&lt;/p&gt;
" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg?w=225" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg?w=486" class="alignnone size-full wp-image-993" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg?w=700" alt="Exif_JPEG_420"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg 486w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg?w=113&amp;h=150 113w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg?w=225&amp;h=300 225w" sizes="(max-width: 486px) 100vw, 486px" /></div>
<div></div>
<div>The messages are also sent successfully:</div>
<div></div>
<div><img loading="lazy" data-attachment-id="986" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/messages/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png" data-orig-size="1304,465" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Messages" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=700" class="alignnone size-full wp-image-986" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=700" alt="Messages"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png 1304w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=150&amp;h=53 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=300&amp;h=107 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=768&amp;h=274 768w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png?w=1024&amp;h=365 1024w" sizes="(max-width: 1304px) 100vw, 1304px" /></div>
<div></div>
<div><img loading="lazy" data-attachment-id="997" data-permalink="https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/messagegreen/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png" data-orig-size="1012,604" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="MessageGreen" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=700" class="alignnone size-full wp-image-997" src="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=700" alt="MessageGreen"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png 1012w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=150&amp;h=90 150w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=300&amp;h=179 300w, https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png?w=768&amp;h=458 768w" sizes="(max-width: 1012px) 100vw, 1012px" /></div>
<div></div>
<div>Enjoy!</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2020/02/25/a-first-experience-with-azure-iot-and-raspberry-pi-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">965</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotedge.png">
			<media:title type="html">IotEdge</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodules.png">
			<media:title type="html">iotmodules</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers.png">
			<media:title type="html">iotmodulescontainers</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/iotmodulescontainers1.png">
			<media:title type="html">iotmodulescontainers1</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/gpio-pinout-diagram-2.png">
			<media:title type="html">GPIO-Pinout-Diagram-2</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi6.jpg">
			<media:title type="html">Exif_JPEG_420</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/buildpush.png">
			<media:title type="html">BuildPush</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi1.png">
			<media:title type="html">RPI1</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi2.png">
			<media:title type="html">RPI2</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi3.png">
			<media:title type="html">RPI3</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi5.png">
			<media:title type="html">RPI5</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi7.jpg">
			<media:title type="html">Exif_JPEG_420</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/rpi8.jpg">
			<media:title type="html">Exif_JPEG_420</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messages.png">
			<media:title type="html">Messages</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2020/02/messagegreen.png">
			<media:title type="html">MessageGreen</media:title>
		</media:content>
	</item>
		<item>
		<title>Kubernetes HPA (Horizontal Pod Autoscalar); the right way to do it!</title>
		<link>https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/</link>
					<comments>https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Sat, 26 Oct 2019 21:03:13 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=951</guid>

					<description><![CDATA[Hi again! I have the honor to be one of the first users of Docker. Swarm was and remains a superb orchestration solution. I learned of course since a long way about Kubernetes, but I hadn&#8217;t give it a try. Thanks to my trainings, the love story began and I cannot hide it. One of &#8230; <a href="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/" class="more-link">Continue reading <span class="screen-reader-text">Kubernetes HPA (Horizontal Pod Autoscalar); the right way to do&#160;it!</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi again!</p>
<p>I have the honor to be one of the first users of Docker. Swarm was and remains a superb orchestration solution. I learned of course since a long way about Kubernetes, but I hadn&#8217;t give it a try. Thanks to my trainings, the love story began and I cannot hide it.</p>
<p>One of the charming features of K8S you can find the autoscaling at different levels : &#8220;<em>(1) Pods layer autoscalers, this includes Horizontal Pod Autoscaler (HPA) and Vertical Pod Autoscaler (VPA); both scale available resources for your containers, and (2) cluster level scalability, which managed by the Cluster Autoscaler (CA); it scales up or down the number of nodes inside your cluster.&#8221; </em> (from <a href="https://medium.com/magalix/kubernetes-autoscaling-101-cluster-autoscaler-horizontal-pod-autoscaler-and-vertical-pod-2a441d9ad231" target="_blank" rel="noopener">here</a>).</p>
<p>I hurried up to test the HPA feature but this does not work during a demo in my training course. I was desappointed but I finally found the reason for that. Before, going further, let&#8217;s depict some necessary points.</p>
<p>The HPA feature relies on some metrics (by default CPU and RAM) collected from the cAdvisor component in each Kubelet agent. The collected data are sent to the Metrics Server which is a K8S addon that has to be installed in your cluster. &#8220;<em><a class="br de fy fz ga gb" href="https://github.com/kubernetes-incubator/metrics-server" target="_blank" rel="noopener">Metrics Server</a> is a cluster-wide aggregator of resource usage data. It collects metrics like CPU or memory consumption for containers or nodes, from the Summary API, exposed by <a class="br de fy fz ga gb" href="https://kubernetes.io/docs/admin/kubelet/" target="_blank" rel="noopener">Kubelet</a> on each node.&#8221; (</em>from <a href="https://medium.com/@cagri.ersen/kubernetes-metrics-server-installation-d93380de008" target="_blank" rel="noopener">here</a>).</p>
<p>Metrics-server has to be installed using the following steps:</p>
<blockquote><p>git clone <a href="https://github.com/kubernetes-incubator/metrics-server.git" rel="nofollow">https://github.com/kubernetes-incubator/metrics-server.git</a><br />
cd metrics-server<br />
kubectl apply -f deploy/1.8+/</p></blockquote>
<p>You can now collect some metrics about the nodes, the pods, etc.</p>
<p><img loading="lazy" data-attachment-id="956" data-permalink="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/k8s1/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png" data-orig-size="449,51" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="k8s1" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png?w=449" class="alignnone size-full wp-image-956" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png?w=700" alt="k8s1"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png 449w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png?w=150&amp;h=17 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png?w=300&amp;h=34 300w" sizes="(max-width: 449px) 100vw, 449px" /></p>
<p>The HPA controller collects data from the Metrics-server and adjusts the scalability of deployments according to HPA policies:</p>
<figure data-shortcode="caption" id="attachment_957" aria-describedby="caption-attachment-957" style="width: 1009px" class="wp-caption alignnone"><img loading="lazy" data-attachment-id="957" data-permalink="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/k8s2/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png" data-orig-size="1009,582" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="K8s2" data-image-description="&lt;p&gt;HPA Architecture&lt;/p&gt;
" data-image-caption="&lt;p&gt;HPA Architecture&lt;/p&gt;
" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=700" class="alignnone size-full wp-image-957" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=700" alt="HPA Architecture"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png 1009w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=150&amp;h=87 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=300&amp;h=173 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png?w=768&amp;h=443 768w" sizes="(max-width: 1009px) 100vw, 1009px" /><figcaption id="caption-attachment-957" class="wp-caption-text">HPA Architecture</figcaption></figure>
<p>Ok, let&#8217;s give it a try; I have two K8S nodes with a master and a minion. I defined a Nginx deployment using this yaml file :</p>
<blockquote>
<pre><code class="language-yaml">apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: nginx
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80</code></pre>
</blockquote>
<p>After creating the nginx service, an hpa policy was created as follows :</p>
<blockquote><p># kubectl autoscale deployment nginx &#8211;min=1 &#8211;max=5 &#8211;cpu-percent=50</p></blockquote>
<p>&#8220;<em>The basic parameters that will you need for any HPA are:</em></p>
<ul>
<li><em><strong>Scale target: </strong>the controller that this HPA will interact with</em>
<ul>
<li><em>minReplicas: minimum number of pods, the HPA cannot go below this value</em></li>
<li><em>maxRepicas: maximum number of pods, the HPA cannot go above this value</em></li>
</ul>
</li>
<li><em><strong>Target metric(s)</strong>: metric (or metrics) used to evaluate current load and take scaling decisions</em>
<ul>
<li><em><strong>targetValue:</strong> threshold value for the metric. If the metric readings are above this value, and (currentReplicas</em>&#8221; (from <a href="https://sysdig.com/blog/kubernetes-autoscaler/" target="_blank" rel="noopener">here</a>).</li>
</ul>
</li>
</ul>
<p>I used the <a href="https://github.com/wg/wrk" target="_blank" rel="noopener">wrk </a>container to simulate the trafic (the nginx service was published using the nodeport mode with the port 32116):</p>
<blockquote><p>docker run &#8211;rm loadimpact/loadgentest-wrk -c 1200 -t 1200 -d 15m <a href="http://172.16.0.4:32116" rel="nofollow">http://172.16.0.4:32116</a></p></blockquote>
<p>I noticed the unknown phenomena when running get hpa command to see if my deployment is scaled up:</p>
<p><img loading="lazy" data-attachment-id="959" data-permalink="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/k8s3/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png" data-orig-size="661,88" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="k8s3" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png?w=661" class="alignnone size-full wp-image-959" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png?w=700" alt="k8s3"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png 661w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png?w=150&amp;h=20 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png?w=300&amp;h=40 300w" sizes="(max-width: 661px) 100vw, 661px" /></p>
<p>The <a href="https://dzone.com/articles/how-to-use-kubernetes-for-autoscaling" target="_blank" rel="noopener">solution </a>was to define the requests and the limits of deplyments pods. The deployment file was updated to include these information:</p>
<blockquote>
<pre><code class="language-yaml">apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        resources:
          limits:
            100m
          requests:
            50m
        ports:
        - containerPort: 80</code></pre>
</blockquote>
<p>In this case, each new pod requets 50m and is limited to 100m. I deleted the old hpa and redefined it again.</p>
<p>Now, the unknown error has disappeared; good shot!:</p>
<p><img loading="lazy" data-attachment-id="960" data-permalink="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/k8s4/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png" data-orig-size="590,51" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="k8s4" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png?w=590" class="alignnone size-full wp-image-960" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png?w=700" alt="k8s4"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png 590w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png?w=150&amp;h=13 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png?w=300&amp;h=26 300w" sizes="(max-width: 590px) 100vw, 590px" /></p>
<p>But the good news;  the deployment has been scaled up! Bingo:</p>
<p><img loading="lazy" data-attachment-id="961" data-permalink="https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/k8s5/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png" data-orig-size="647,159" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="k8s5" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png?w=647" class="alignnone size-full wp-image-961" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png?w=700" alt="k8s5.png"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png 647w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png?w=150&amp;h=37 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png?w=300&amp;h=74 300w" sizes="(max-width: 647px) 100vw, 647px" /></p>
<p>Finally, some useful lessons:</p>
<ol>
<li>Heapster was the previously the metrics server use dto collect metric data. Today, it is deprecated and is replaced by the Metrics-server addon.</li>
<li>We can use custom metrics and custom metrics sources like <a href="https://sysdig.com/blog/kubernetes-autoscaler/" target="_blank" rel="noopener">Sysdig </a>and <a href="https://banzaicloud.com/blog/k8s-horizontal-pod-autoscaler/" target="_blank" rel="noopener">Prometheus</a>.</li>
</ol>
<p>Hope it helped!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2019/10/26/kubernetes-hpa-horizontal-pod-autoscalar-the-right-way-to-do-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">951</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s1.png">
			<media:title type="html">k8s1</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s2.png">
			<media:title type="html">HPA Architecture</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s3.png">
			<media:title type="html">k8s3</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s4.png">
			<media:title type="html">k8s4</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/10/k8s5.png">
			<media:title type="html">k8s5.png</media:title>
		</media:content>
	</item>
		<item>
		<title>SPFx on Docker for Windows lovers</title>
		<link>https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/</link>
					<comments>https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Wed, 12 Jun 2019 21:50:31 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=929</guid>

					<description><![CDATA[Hi Everyone, SPFx becomes today the best way to develop modern SharePoint Applications as it includes standard dev tools such as npm, TypeScript, Yeoman, webpack, and gulp. Any JS developer can use his favorite fremawork : React, Handlebars, Knockout, Angular,  Vue, and more. During a discussion with the team, a question was asked if we &#8230; <a href="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/" class="more-link">Continue reading <span class="screen-reader-text">SPFx on Docker for Windows&#160;lovers</span></a>]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" data-attachment-id="930" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/use-spfx-with-docker/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png" data-orig-size="1024,614" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="use-spfx-with-docker" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=700" class="alignnone size-full wp-image-930" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=700" alt="use-spfx-with-docker"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=150&amp;h=90 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=300&amp;h=180 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png?w=768&amp;h=461 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>Hi Everyone,</p>
<p>SPFx becomes today the best way to develop modern SharePoint Applications as it includes standard dev tools such as npm, TypeScript, Yeoman, webpack, and gulp. Any JS developer can use his favorite fremawork : React, Handlebars, Knockout, Angular,  Vue, and more.</p>
<p>During a discussion with the team, a question was asked if we can use Docker in order to implement sandboxed SPFx environments. The answer was YES as I had the chance to read some articles from the great <a href="https://blog.mastykarz.nl/tag/docker">Waldek Mastykarz before.</a></p>
<p>The advantages are so interesting:</p>
<ul>
<li>Docker allows you to develop using different versions of SPFx on the same machine.</li>
<li>The developer machine remains clean; there is no need to install Node.js, npm and other tools.</li>
<li>Developers can reuse the same images from the entreprise registry.</li>
<li>SPFx containers are so lightweight with a very small overhead.</li>
</ul>
<p>SPFx uses standard tools so you can even develop the modules under Linux. For this reason, you can find SPFx Linux containers like the <a href="https://hub.docker.com/r/waldekm/spfx" target="_blank" rel="noopener">Waldek images</a>.</p>
<p>The developer has to organize his filesystem of his machine and mount the folders in the containers :</p>
<p><img loading="lazy" data-attachment-id="931" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/types-of-mounts-volume/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png" data-orig-size="502,255" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="types-of-mounts-volume" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png?w=502" class=" size-full wp-image-931 aligncenter" style="color:var(--color-text);" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png?w=700" alt="types-of-mounts-volume"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png 502w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png?w=150&amp;h=76 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png?w=300&amp;h=152 300w" sizes="(max-width: 502px) 100vw, 502px" /></p>
<p>But what about developers that use Windows?</p>
<p>Docker Desktop allow you to switch to Linux containers and run the Waldek image. But this will use a Linux VM as Docker Server. At a given time you can just use an OS type containers : Windows or Linux.</p>
<p>Can we use SPFx in Windows containers. The answer is Yes. We will use an <a href="https://hub.docker.com/r/ramzivic/ram-spfx" target="_blank" rel="noopener">image</a> that I constructed and you can find it in my Docker hub. The image is based on :</p>
<ul>
<li>nano core 1809</li>
<li>Node.JS 10.16</li>
<li>SPFx 1.8.2</li>
</ul>
<p><img loading="lazy" data-attachment-id="932" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/mydockerhub/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="mydockerhub" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=700" class="alignnone size-full wp-image-932" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=700" alt="mydockerhub.png"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>the size of the image is so light :</p>
<p><img loading="lazy" data-attachment-id="943" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/myimage/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png" data-orig-size="785,17" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="myimage" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=700" class="alignnone size-full wp-image-943" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=700" alt="myimage"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png 785w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=150&amp;h=3 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=300&amp;h=6 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png?w=768&amp;h=17 768w" sizes="(max-width: 785px) 100vw, 785px" /></p>
<p>The content of the Dockerfile is as follows :</p>
<blockquote>
<div>
<div>FROM stefanscherer/node-windows:10.16.0-nanoserver-1809</div>
<div>EXPOSE 5432 4321 35729</div>
<div>RUN npm install -g yo gulp</div>
<div>RUN npm install -g @microsoft/generator-sharepoint</div>
<div>RUN CMD gulp trust-dev-cert</div>
<div>RUN md c:\\SPFx</div>
<div>WORKDIR c:\\SPFx</div>
</div>
</blockquote>
<div>
<div>you can either construct the image or simply download it from Docker Hub using this command :</div>
<blockquote>
<div>docker pull ramzivic/ram-spfx:1.8.2</div>
</blockquote>
<div>Now we can run the dev SPFx container using this command:</div>
<blockquote>
<div><code class="language-sh">docker run -it --rm --name SPFxContainer -v YOURDIR:c:\spfx -p 5432:5432 -p 4321:4321 -p 35729:35729 ramzivic/ram-spfx:1.8.2 cmd</code></div>
</blockquote>
<div>This will allow you to execute commands inside the created container.</div>
<div>The following options need perhaps further explanations:</div>
<ul>
<li>-it : the container is launched with interactive mode</li>
<li>&#8211;rm : the container is volatile. After the reboot of the host the container is deleted</li>
<li>&#8211;name : the name given to the container</li>
<li>-v : this option permits to attach a local folder of the Host and map it to an internal folder inside the container</li>
<li>-p : this option allows you to map external host ports to internal container ports. Like the 5432 port that is used by the Workbench. And here you have the magic of Docker; you can launch differet SPFx containers with diffrenet ports mapping and multiple workbenches could be launched in parallel.</li>
</ul>
<div>To create a new SharePoint Framework project in the container the command to execute is as follows:</div>
<blockquote>
<div>
<pre><code class="language-sh">yo @microsoft/sharepoint</code></pre>
</div>
</blockquote>
<div>
<p><img loading="lazy" data-attachment-id="933" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/yo/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png" data-orig-size="707,199" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="yo" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png?w=700" class="alignnone size-full wp-image-933" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png?w=700" alt="yo"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png 707w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png?w=150&amp;h=42 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png?w=300&amp;h=84 300w" sizes="(max-width: 707px) 100vw, 707px" /></p>
<p>The command will generate errors as it seems that there is a bug on Windows containers with npm that cannot isntall some packages on a shared volume. (This issue does not exist on Linux).</p>
<p>In order to share a project folder, we have created the folder on the host and shared it. Let us suppose that the host ip address is : 172.24.176.1 and the shared project file is \\172.24.176.1\SPFx1 (you can use the container gateway IP address as the Host IP Address if the default NAT network  is used)</p>
<p>Inside the SPFx container execute the mount command :</p>
<blockquote><p>net use z: \\172.24.176.1\SPFx1 /user:172.24.176.1\user password</p></blockquote>
<p><img loading="lazy" data-attachment-id="934" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/mount/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png" data-orig-size="586,177" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="mount" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png?w=586" class="alignnone size-full wp-image-934" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png?w=700" alt="mount"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png 586w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png?w=150&amp;h=45 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png?w=300&amp;h=91 300w" sizes="(max-width: 586px) 100vw, 586px" /></p>
<p>The project should be created now, I hae created a WebPart project with no JS Framework and targetting SharePoint 2016:</p>
<p><img loading="lazy" data-attachment-id="935" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr1/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr1" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=700" class="alignnone size-full wp-image-935" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=700" alt="Pr1"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p><img loading="lazy" data-attachment-id="936" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr2/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr2" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=700" class="alignnone size-full wp-image-936" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=700" alt="Pr2.png"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>Emm, according to the messages, there are critical vulnerabilities that have to be resolved. This point is so important for the security of the solution.</p>
<p>What about my Host folder? It contains all the project files:</p>
<p><img loading="lazy" data-attachment-id="937" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr3/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr3" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=700" class="alignnone size-full wp-image-937" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=700" alt="Pr3"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>And now you can use your favorite editor to develop your module:</p>
<p><img loading="lazy" data-attachment-id="938" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr4/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr4" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=700" class="alignnone size-full wp-image-938" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=700" alt="Pr4"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>Before executing the gulp serve to launch the workbench</p>
<blockquote><p>gulp serve</p></blockquote>
<p>We have to configure the ssl and set it to false in the serve.json file</p>
<p><img loading="lazy" data-attachment-id="939" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr5/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr5" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=700" class="alignnone size-full wp-image-939" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=700" alt="Pr5"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>This will launch the workbench using this URL in the host as the container ports are mapped to the host:</p>
<blockquote><p><a href="http://localhost:5432/workbench" rel="nofollow">http://localhost:5432/workbench</a></p></blockquote>
<p>This action is applied in order to evict the <span class="js-issue-title">ERR_SSL_PROTOCOL_ERROR <a href="https://github.com/SharePoint/sp-dev-docs/issues/2343">issue</a>. According to the proposed solution, we have to disable the HTTP2 support by setting the NO_NODE_HTTP2 environment variable to 1. I have to apply it in the image as a first fix (ICE)</span></p>
<p>And here we go :</p>
<p><img loading="lazy" data-attachment-id="940" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr51/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr51" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=700" class="alignnone size-full wp-image-940" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=700" alt="Pr51"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p><img loading="lazy" data-attachment-id="941" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr52/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr52" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=700" class="alignnone size-full wp-image-941" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=700" alt="Pr52"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>In the container we can check the requests:</p>
<p><img loading="lazy" data-attachment-id="947" data-permalink="https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/pr6-2/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png" data-orig-size="1920,1080" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Pr6" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=700" class="alignnone size-full wp-image-947" src="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=700" alt="Pr6"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png 1920w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=150&amp;h=84 150w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=300&amp;h=169 300w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=768&amp;h=432 768w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=1024&amp;h=576 1024w, https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png?w=1440&amp;h=810 1440w" sizes="(max-width: 1920px) 100vw, 1920px" /></p>
<p>Now, even if you stop or remove your container, the project files are persisted on your local filesystem!!! (Git or similar are a must of course).</p>
<p>Happy coding!</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2019/06/12/spfx-on-docker-for-windows-lovers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">929</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/use-spfx-with-docker.png">
			<media:title type="html">use-spfx-with-docker</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/types-of-mounts-volume.png">
			<media:title type="html">types-of-mounts-volume</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mydockerhub.png">
			<media:title type="html">mydockerhub.png</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/myimage.png">
			<media:title type="html">myimage</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/yo.png">
			<media:title type="html">yo</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/mount.png">
			<media:title type="html">mount</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr1.png">
			<media:title type="html">Pr1</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr2.png">
			<media:title type="html">Pr2.png</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr3.png">
			<media:title type="html">Pr3</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr4.png">
			<media:title type="html">Pr4</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr5.png">
			<media:title type="html">Pr5</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr51.png">
			<media:title type="html">Pr51</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr52.png">
			<media:title type="html">Pr52</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2019/06/pr6-1.png">
			<media:title type="html">Pr6</media:title>
		</media:content>
	</item>
		<item>
		<title>A more advanced Survey List in SharePoint 2013</title>
		<link>https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/</link>
					<comments>https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 19:13:31 +0000</pubDate>
				<category><![CDATA[MS Technologies]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=843</guid>

					<description><![CDATA[Hi everyone! My customer has asked for a solution to evaluate developped applications by the end users. A solution based on Survey template was proposed but the default template is just a form with the questions as fields. The interface is not convivial if we have a long survey! Let us assume that we have &#8230; <a href="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/" class="more-link">Continue reading <span class="screen-reader-text">A more advanced Survey List in SharePoint&#160;2013</span></a>]]></description>
										<content:encoded><![CDATA[<pre>Hi everyone!</pre>
<p>My customer has asked for a solution to evaluate developped applications by the end users. A solution based on Survey template was proposed but the default template is just a form with the questions as fields. The interface is not convivial if we have a long survey!</p>
<p>Let us assume that we have a survey with three questions. The following pictures shows the default NewForm:</p>
<figure data-shortcode="caption" id="attachment_875" aria-describedby="caption-attachment-875" style="width: 326px" class="wp-caption aligncenter"><img loading="lazy" data-attachment-id="875" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey11/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png" data-orig-size="473,628" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey11" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=226" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=473" class="alignnone  wp-image-875" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=326&#038;h=433" alt="Survey11" width="326" height="433" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=326&amp;h=433 326w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=113&amp;h=150 113w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png?w=226&amp;h=300 226w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png 473w" sizes="(max-width: 326px) 100vw, 326px" /><figcaption id="caption-attachment-875" class="wp-caption-text">Enter a caption</figcaption></figure>
<p>What is the difference between a custom list and a survey then? Some interesting features can be cited:</p>
<ul>
<li>The stats part to evaluate the survey.<img loading="lazy" data-attachment-id="872" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/surevey12/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png" data-orig-size="697,422" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Surevey12" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=697" class="  wp-image-872 aligncenter" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=381&#038;h=231" alt="Surevey12" width="381" height="231" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=381 381w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=150 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=300 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png 697w" sizes="(max-width: 381px) 100vw, 381px" /></li>
<li>The branching feature in the survey that allows to jump to a given step based on what is chosen by the user at the current step.<img loading="lazy" data-attachment-id="873" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/surevey13/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png" data-orig-size="871,172" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Surevey13" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=700" class=" size-full wp-image-873 aligncenter" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=700" alt="Surevey13"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png 871w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=150&amp;h=30 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=300&amp;h=59 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png?w=768&amp;h=152 768w" sizes="(max-width: 871px) 100vw, 871px" /></li>
</ul>
<p>Now, let us develop a more advanced survey using just javascript! We want to achieve these objectives:</p>
<ul>
<li>View just one question at a given step</li>
<li>Two buttons to access to the next or the previous question</li>
<li>View the Finish button once the user has finished the survey</li>
<li>Confirm the answers before saving</li>
</ul>
<p>3 libraries will be used for different purposes:</p>
<ul>
<li>SP.js for notifications.</li>
<li>SPUtilies.js for hiding and showing the questions.</li>
<li>JQuery for SPUtilities.</li>
</ul>
<p>Simply we will write a custom html file that will be referenced into a Content Editor WebPart added on the page NewForm.apsx of your survey:</p>
<p><img loading="lazy" data-attachment-id="876" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey14/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png" data-orig-size="1193,467" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey14" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=700" class="alignnone size-full wp-image-876" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=700" alt="Survey14"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png 1193w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=150&amp;h=59 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=300&amp;h=117 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=768&amp;h=301 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png?w=1024&amp;h=401 1024w" sizes="(max-width: 1193px) 100vw, 1193px" /></p>
<p>Here is the content of the Quiz.html:</p>
<blockquote>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;

&lt;html lang=&quot;en&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;!-- Javascript files references --&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/JS/jquery-1.11.2.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/JS/sputility.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/_layouts/15/sp.runtime.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/_layouts/15/sp.js&quot;&gt;&lt;/script&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;!-- A table containing the Next and Previous buttons --&gt;
&lt;table class=&quot;ms-rteTable-default&quot; cellspacing=&quot;0&quot; style=&quot;width: 100px;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td  style=&quot;width: 100px; height: 20px;&quot;&gt;
&lt;div id=&quot;Previous&quot;&gt;&lt;&lt;&lt;&lt;/div&gt;&lt;/td&gt;
&lt;td  style=&quot;width: 100px; height: 20px;&quot;&gt;
&lt;div id=&quot;Next&quot;&gt;&gt;&gt;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
        //A variable to keep the current position in the survey
        var i = 0;
        //An Arry to store the list of the questions fields
        var fieldsArray = [];
        //This functions is invoked when we click on Finish Button
        function PreSaveItem() {
            var fields = SPUtility.GetSPFields();
            var message = 'Are you sure to save these answers ?\n';
            for (fieldName in fields) {
                message = message + fieldName + ' : ' + 
                SPUtility.GetSPField(fieldName).GetValue() + '\n';

            }

            if (confirm(message)) {

                return PreSaveAction(); // allow save form...
            }
        };
            //Notify the user
            function PreSaveAction() {
                SP.UI.Notify.addNotification('Your Answers are being saved...', 
                                             false);
                return true;
            };
            $(document).ready(function () {
                //Hiding the form toolbar
            $('.ms-formtoolbar').hide();
            var fields = SPUtility.GetSPFields();
            for (fieldName in fields) {   
                //Get the questions list
                fieldsArray.push(SPUtility.GetSPField(fieldName));
                //Hide all question
                SPUtility.HideSPField(SPUtility.GetSPField(fieldName));
            }
                //Show the first question
            SPUtility.ShowSPField(fieldsArray[0]);
            });
        //Next handler
            $(&quot;#Next&quot;).click(function () {
                //Hide the current question
            SPUtility.HideSPField(fieldsArray[i]);
            
            if (i &lt; fieldsArray.length-1) 
            {                 
                i++;             
            }             
            else             
           {                 
           //Show the form toolbar when we reach the last question                 
            $('.ms-formtoolbar').show();             
            }             
            //Show the next question             
            SPUtility.ShowSPField(fieldsArray[i]);                      
            });         
            //Previous handler         
           $(&quot;#Previous&quot;).click(function () 
           {             
             //Hide the current question             
             SPUtility.HideSPField(fieldsArray[i]);                          
           if (i &gt; 0) {
                i--;
            }
            //Show the previous question
            SPUtility.ShowSPField(fieldsArray[i]);

        });
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
</blockquote>
<p>Let us see the results!</p>
<p>Oh yes, the buttons Next and Previous allow you to navigate between the questions:</p>
<p>First Question:</p>
<p><img loading="lazy" data-attachment-id="877" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey15/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png" data-orig-size="346,359" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey15" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=289" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=346" class="alignnone  wp-image-877" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=237&#038;h=246" alt="Survey15" width="237" height="246" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=237&amp;h=246 237w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=145&amp;h=150 145w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png?w=289&amp;h=300 289w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png 346w" sizes="(max-width: 237px) 100vw, 237px" /></p>
<p>Second Question:</p>
<p><img loading="lazy" data-attachment-id="878" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey16/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png" data-orig-size="372,330" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey16" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=372" class="alignnone  wp-image-878" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=219&#038;h=194" alt="Survey16" width="219" height="194" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=219&amp;h=194 219w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=150&amp;h=133 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png?w=300&amp;h=266 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png 372w" sizes="(max-width: 219px) 100vw, 219px" /></p>
<p>Thrid Question:</p>
<p><img loading="lazy" data-attachment-id="879" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey17/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png" data-orig-size="292,335" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey17" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png?w=261" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png?w=292" class="alignnone  wp-image-879" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png?w=194&#038;h=223" alt="Survey17" width="194" height="223" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png?w=194&amp;h=223 194w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png?w=131&amp;h=150 131w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png 292w" sizes="(max-width: 194px) 100vw, 194px" /></p>
<p>Now if we clic on the Next button the Finsih button is shown:</p>
<p><img loading="lazy" data-attachment-id="880" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey18/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png" data-orig-size="439,357" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey18" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=439" class="  wp-image-880 aligncenter" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=275&#038;h=224" alt="Survey18" width="275" height="224" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=275&amp;h=224 275w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=150&amp;h=122 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png?w=300&amp;h=244 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png 439w" sizes="(max-width: 275px) 100vw, 275px" /></p>
<p>Before saving the answers a confirm window is launched to confirm the answers:</p>
<p><img loading="lazy" data-attachment-id="881" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey19/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png" data-orig-size="844,359" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey19" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=700" class="  wp-image-881 aligncenter" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=616&#038;h=262" alt="Survey19" width="616" height="262" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=616&amp;h=262 616w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=150&amp;h=64 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=300&amp;h=128 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png?w=768&amp;h=327 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png 844w" sizes="(max-width: 616px) 100vw, 616px" /></p>
<p>Finally, a notification label dispalys the message of saving the answers:</p>
<p><img loading="lazy" data-attachment-id="910" data-permalink="https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/survey20/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png" data-orig-size="281,132" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Survey20" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png?w=281" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png?w=281" class="alignnone size-full wp-image-910" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png?w=700" alt="Survey20"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png 281w, https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png?w=150&amp;h=70 150w" sizes="(max-width: 281px) 100vw, 281px" /></p>
<p>Ok that&#8217;s all! Hope it helps!</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/07/05/a-more-advanced-survey-list-in-sharepoint-2013/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">843</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey11.png">
			<media:title type="html">Survey11</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey12.png?w=680">
			<media:title type="html">Surevey12</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/surevey13.png">
			<media:title type="html">Surevey13</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey14.png">
			<media:title type="html">Survey14</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey15.png">
			<media:title type="html">Survey15</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey16.png">
			<media:title type="html">Survey16</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey17.png">
			<media:title type="html">Survey17</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey18.png">
			<media:title type="html">Survey18</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey19.png">
			<media:title type="html">Survey19</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/07/survey20.png">
			<media:title type="html">Survey20</media:title>
		</media:content>
	</item>
		<item>
		<title>Docker Cloud; you can deal with different Cloud Providers through a single API! (part2)</title>
		<link>https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/</link>
					<comments>https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Thu, 17 Mar 2016 06:45:09 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=806</guid>

					<description><![CDATA[Hi again! The first part of this series depicted the steps to follow in order to create a Docker container hosting a simple Web Application using the Docker Cloud API. We assume that the hosting nodes are created and the objective is to develop a 3 tiers application: Haproxy as a load balancer and reverse &#8230; <a href="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/" class="more-link">Continue reading <span class="screen-reader-text">Docker Cloud; you can deal with different Cloud Providers through a single API!&#160;(part2)</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi again!</p>
<p>The <a href="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/">first </a>part of this series depicted the steps to follow in order to create a Docker container hosting a simple Web Application using the Docker Cloud API.</p>
<p>We assume that the hosting nodes are created and the objective is to develop a 3 tiers application:</p>
<ol>
<li>Haproxy as a load balancer and reverse proxy hosted on a single container</li>
<li>4 Web applications hosted on 4 containers</li>
<li>Redis server hosted on a single container to provide cache capabilities</li>
</ol>
<p>Now let&#8217;s start:</p>
<p>We can draw our infratsructure using the StackFiles. The syntax is so easy to understand. Let&#8217;s see how to define our application</p>
<p><img loading="lazy" data-attachment-id="826" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap853/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png" data-orig-size="1351,625" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap853" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=700" class="alignnone size-full wp-image-826" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=700" alt="Snap853"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png 1351w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=150&amp;h=69 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=300&amp;h=139 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=768&amp;h=355 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png?w=1024&amp;h=474 1024w" sizes="(max-width: 1351px) 100vw, 1351px" /></p>
<p>As you can see, the labels lb, web and redis define the tiers. the Haproxy load balancer is listening on the port 80 and is directly linked to the Web Tier. Four containers that host our Web Application are linked to the Redis cache tier. It s so simple, isn&#8217;t it?</p>
<p>Automatically, the services are created.</p>
<p><img loading="lazy" data-attachment-id="828" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap854/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png" data-orig-size="1352,589" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap854" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=700" class="alignnone size-full wp-image-828" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=700" alt="Snap854"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png 1352w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=150&amp;h=65 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=300&amp;h=131 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=768&amp;h=335 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png?w=1024&amp;h=446 1024w" sizes="(max-width: 1352px) 100vw, 1352px" /></p>
<p>Using the Stack dashboard, we can start the stack.</p>
<p><img loading="lazy" data-attachment-id="830" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap855/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png" data-orig-size="1365,374" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap855" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=700" class="alignnone size-full wp-image-830" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=700" alt="Snap855"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png 1365w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=150&amp;h=41 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=300&amp;h=82 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=768&amp;h=210 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png?w=1024&amp;h=281 1024w" sizes="(max-width: 1365px) 100vw, 1365px" /></p>
<p>But you have just to notice the order in which the containers start, Redis, Web and finally the Haproxy load balancer.</p>
<p><img loading="lazy" data-attachment-id="832" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap856/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png" data-orig-size="1347,598" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap856" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=700" class="alignnone size-full wp-image-832" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=700" alt="Snap856"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png 1347w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=150&amp;h=67 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=300&amp;h=133 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=768&amp;h=341 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png?w=1024&amp;h=455 1024w" sizes="(max-width: 1347px) 100vw, 1347px" /></p>
<p>This example is so simple, the default behaviour of the load balancer is based on the Round Robin algorithm without any session affinity.</p>
<p>For each F5, we visit a given container.</p>

<a href='https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap857/'><img width="150" height="72" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=150" class="attachment-thumbnail size-thumbnail" alt="" decoding="async" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=150 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" data-attachment-id="834" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap857/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png" data-orig-size="1366,660" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap857" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=700" /></a>
<a href='https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap858/'><img width="150" height="72" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=150" class="attachment-thumbnail size-thumbnail" alt="" decoding="async" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=150 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" data-attachment-id="835" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap858/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png" data-orig-size="1363,658" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap858" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=700" /></a>
<a href='https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap859/'><img width="150" height="73" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=150" class="attachment-thumbnail size-thumbnail" alt="" decoding="async" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=150 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" data-attachment-id="836" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap859/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png" data-orig-size="1366,661" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap859" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=700" /></a>
<a href='https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap860/'><img width="150" height="73" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=150" class="attachment-thumbnail size-thumbnail" alt="" decoding="async" srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=150 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" data-attachment-id="837" data-permalink="https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/snap860/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png" data-orig-size="1366,661" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap860" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=700" /></a>

<p>Enjoy!</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/03/17/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">806</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap853.png">
			<media:title type="html">Snap853</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap854.png">
			<media:title type="html">Snap854</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap855.png">
			<media:title type="html">Snap855</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap856.png">
			<media:title type="html">Snap856</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap857.png?w=150"/>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap858.png?w=150"/>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap859.png?w=150"/>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap860.png?w=150"/>
	</item>
		<item>
		<title>Docker Cloud; you can deal with different Cloud Providers through a single API! (part1)</title>
		<link>https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/</link>
					<comments>https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Wed, 02 Mar 2016 14:48:29 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=733</guid>

					<description><![CDATA[Hi again! How Docker is good, is attractive, is &#8230; splendid. Just after the Docker Datacenter, Docker Cloud is the new solution to create cluster nodes on different platforms like Azure, containers and Stacks (in Swarm fashion). Ok today I will show you some steps for two scenarios on Azure: A simple Web application hosted in &#8230; <a href="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/" class="more-link">Continue reading <span class="screen-reader-text">Docker Cloud; you can deal with different Cloud Providers through a single API!&#160;(part1)</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi again!</p>
<p>How Docker is good, is attractive, is &#8230; splendid. Just after the Docker Datacenter, Docker Cloud is the new solution to create cluster nodes on different platforms like Azure, containers and Stacks (in Swarm fashion).</p>
<p>Ok today I will show you some steps for two scenarios on Azure:</p>
<ol>
<li>A simple Web application hosted in a single container (part1).</li>
<li>A 3 tiers application (part 2) based on:
<ol>
<li>Haproxy as a load balancer and reverse proxy hosted on a single container</li>
<li>4 Web applications hosted on 4 containers</li>
<li>Redis server hosted on a single container to provide cache capabilities</li>
</ol>
</li>
</ol>
<p>Let us start with the firts scenario:</p>
<ol>
<li>First of all, you import a certificate into the settings of your Azure account to authenticate the Docker Cloud API.</li>
<li>You create a cluster of a given number of nodes. You can resize your cluster. However according to Docker Cloud, the first node is free!!!! Yes. You have just to select the template of your service cloud.</li>
</ol>
<p><img loading="lazy" data-attachment-id="799" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap843/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png" data-orig-size="1344,584" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap843" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=700" class="alignnone size-full wp-image-799" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=700" alt="Snap843"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png 1344w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=150&amp;h=65 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=300&amp;h=130 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=768&amp;h=334 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png?w=1024&amp;h=445 1024w" sizes="(max-width: 1344px) 100vw, 1344px" /></p>
<ol>
<li>After that, you will notice that a service cloud and the corresponding virtual machine are created.</li>
</ol>
<p><img loading="lazy" data-attachment-id="797" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap844/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png" data-orig-size="666,248" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap844" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png?w=666" class="alignnone size-full wp-image-797" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png?w=700" alt="Snap844"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png 666w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png?w=150&amp;h=56 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png?w=300&amp;h=112 300w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<ol>
<li>Ok, now you will create a container that will host the Web Server and the application.</li>
</ol>
<p><img loading="lazy" data-attachment-id="793" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap845/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png" data-orig-size="1190,302" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap845" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=700" class="alignnone size-full wp-image-793" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=700" alt="Snap845"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png 1190w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=150&amp;h=38 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=300&amp;h=76 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=768&amp;h=195 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png?w=1024&amp;h=260 1024w" sizes="(max-width: 1190px) 100vw, 1190px" /></p>
<p><img loading="lazy" data-attachment-id="792" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap846/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png" data-orig-size="1350,588" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap846" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=700" class="alignnone size-full wp-image-792" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=700" alt="Snap846"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png 1350w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=150&amp;h=65 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=300&amp;h=131 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=768&amp;h=335 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png?w=1024&amp;h=446 1024w" sizes="(max-width: 1350px) 100vw, 1350px" /></p>
<ol>
<li>You select the appropriate image. In my case I choose dockercloud/hello-world image. Here you will notice that you can select a deployment strategy when using a cluster of nodes. You can instanciate a given number of the containers from the same image. You can also define a stack file that draws the composed architecture.</li>
</ol>
<p><img loading="lazy" data-attachment-id="789" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap847/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png" data-orig-size="1353,536" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap847" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=700" class="alignnone size-full wp-image-789" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=700" alt="Snap847"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png 1353w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=150&amp;h=59 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=300&amp;h=119 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=768&amp;h=304 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png?w=1024&amp;h=406 1024w" sizes="(max-width: 1353px) 100vw, 1353px" /></p>
<ol>
<li>On the Ports section you have to publish the default port. In my case I define the default http port. But don&#8217;t forget to define an endpoint listening on this port for the virtual machine hosting the containers host.</li>
</ol>
<p><img loading="lazy" data-attachment-id="786" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap848/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png" data-orig-size="1351,624" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap848" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=700" class="alignnone size-full wp-image-786" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=700" alt="Snap848"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png 1351w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=150&amp;h=69 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=300&amp;h=139 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=768&amp;h=355 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png?w=1024&amp;h=473 1024w" sizes="(max-width: 1351px) 100vw, 1351px" /></p>
<p><img loading="lazy" data-attachment-id="783" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap861/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png" data-orig-size="729,130" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap861" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png?w=700" class="alignnone size-full wp-image-783" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png?w=700" alt="Snap861"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png 729w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png?w=150&amp;h=27 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png?w=300&amp;h=53 300w" sizes="(max-width: 729px) 100vw, 729px" /></p>
<p><img loading="lazy" data-attachment-id="803" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap862/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png" data-orig-size="779,280" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap862" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=700" class="alignnone size-full wp-image-803" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=700" alt="Snap862"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png 779w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=150&amp;h=54 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=300&amp;h=108 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png?w=768&amp;h=276 768w" sizes="(max-width: 779px) 100vw, 779px" /></p>
<ol>
<li>Now the service is created, we have just to start it.</li>
</ol>
<p><img loading="lazy" data-attachment-id="779" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap850/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png" data-orig-size="1349,587" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap850" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=700" class="alignnone size-full wp-image-779" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=700" alt="Snap850"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png 1349w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=150&amp;h=65 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=300&amp;h=131 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=768&amp;h=334 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png?w=1024&amp;h=446 1024w" sizes="(max-width: 1349px) 100vw, 1349px" /></p>
<ol>
<li>And a beautiful page is dispalyed from your browser.</li>
</ol>
<p><img loading="lazy" data-attachment-id="776" data-permalink="https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/snap851/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png" data-orig-size="1366,659" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Snap851" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=700" class="alignnone size-full wp-image-776" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=700" alt="Snap851"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png 1366w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=150&amp;h=72 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=300&amp;h=145 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=768&amp;h=371 768w, https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png?w=1024&amp;h=494 1024w" sizes="(max-width: 1366px) 100vw, 1366px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/03/02/docker-cloud-you-can-deal-with-different-cloud-providers-through-a-single-api-part1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">733</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap843.png">
			<media:title type="html">Snap843</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap844.png">
			<media:title type="html">Snap844</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap845.png">
			<media:title type="html">Snap845</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap846.png">
			<media:title type="html">Snap846</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap847.png">
			<media:title type="html">Snap847</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap848.png">
			<media:title type="html">Snap848</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap861.png">
			<media:title type="html">Snap861</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap862.png">
			<media:title type="html">Snap862</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap850.png">
			<media:title type="html">Snap850</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/03/snap851.png">
			<media:title type="html">Snap851</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux containers vs Windows containers; another eternal war starts!</title>
		<link>https://ramzibot.wordpress.com/2016/02/29/linux-containers-vs-windows-containers-another-eternal-war-starts/</link>
					<comments>https://ramzibot.wordpress.com/2016/02/29/linux-containers-vs-windows-containers-another-eternal-war-starts/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Mon, 29 Feb 2016 18:16:26 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[containers]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=691</guid>

					<description><![CDATA[Hi again!, Yes the containers are the future. We can develop virtual machines into containers, containers into virtual machines, virtual appliances into containers, containers into virtual machines into containers, etc. You can&#8217;t limit imagination. Containers are not a new technology. As a Microsoft specialist, I had no information about it before because it came from the Unix/Linux &#8230; <a href="https://ramzibot.wordpress.com/2016/02/29/linux-containers-vs-windows-containers-another-eternal-war-starts/" class="more-link">Continue reading <span class="screen-reader-text">Linux containers vs Windows containers; another eternal war&#160;starts!</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi again!,</p>
<p>Yes the containers are the future. We can develop virtual machines into containers, containers into virtual machines, virtual appliances into containers, containers into virtual machines into containers, etc. You can&#8217;t limit imagination.</p>
<p>Containers are not a new technology. As a Microsoft specialist, I had no information about it before because it came from the Unix/Linux world through mecanisms like namespaces, cgroups and capabilities. Microsoft has decided to integrate this beautiful technology into its new OS Windows Server 2016.</p>
<p>You can develop some containers using the CTP4 and Docker engine.</p>
<p>Containers have the ability to start very fast but the question is : are Windows containers faster or slower than Linux containers?</p>
<p>I took two virtual machines on my Laptop with these configurations:</p>
<ol>
<li>Windows Server Core 2016 CTP 4. 4GB RAM, 2 virtual CPU. Docker version 1.10.0-dev, build e39c811, experimental</li>
<li>Linux Ubuntu 15.04, 4GB RAM, 2 virtual CPU. Docker version 1.10.0-dev, build 59a341e</li>
</ol>
<p>A container is created based on the underlying OS on each virtual machine. Let us see the starting and stopping times. I noticed that the Linux containers start faster after the first bootstrapping.</p>
<table>
<tbody>
<tr>
<td width="312">Windows</td>
<td width="312">Linux</td>
</tr>
<tr>
<td width="312">Starting Time : 11-12s</p>
<p>Stopping Time : 12-13s</td>
<td width="312">1st Starting Time : 2-4s, 2nd ST: 1-2s</p>
<p>Stopping Time : 11-12s</td>
</tr>
</tbody>
</table>
<p>What about a more powerful platform like Azure? I have two virtual machines with the same configurations:</p>
<table>
<tbody>
<tr>
<td width="312">Windows</td>
<td width="312">Linux</td>
</tr>
<tr>
<td width="312">Starting Time : 3-4s</p>
<p>Stopping Time : 2-4s</td>
<td width="312">1st Starting Time : 2-3s, 2nd ST: 0-0.3s!</p>
<p>Stopping Time : 10-10.5s</td>
</tr>
</tbody>
</table>
<p>As a quick conclusion, we can see that Linux containers are 10 times faster than Windows containers.</p>
<p>Microsoft has to deal with the containers performances and has a lot of work. Let us wait for the release version.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/02/29/linux-containers-vs-windows-containers-another-eternal-war-starts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">691</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>
	</item>
		<item>
		<title>–net=Host option not recognized under Windows 2016 CTP4</title>
		<link>https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/</link>
					<comments>https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 19:51:59 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[containers]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=639</guid>

					<description><![CDATA[Hi again, After docker on Linux, I was playing with the new Windows containers using docker engine. Before starting, I explain quickly my environment; I have deployed a virtual machine based on Windows Server Core CTP4 and I deployed the containers feature on it. By default the script used to provision a container host &#8220;Install-ContainerHost.ps1&#8221; &#8230; <a href="https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/" class="more-link">Continue reading <span class="screen-reader-text">&#8211;net=Host option not recognized under Windows 2016&#160;CTP4</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi again,</p>
<p>After docker on Linux, I was playing with the new Windows containers using docker engine.</p>
<p>Before starting, I explain quickly my environment; I have deployed a virtual machine based on Windows Server Core CTP4 and I deployed the containers feature on it. By default the script used to provision a container host &#8220;Install-ContainerHost.ps1&#8221; creates a virtual switch named Virtual Switch using the NAT connection type; finally this feature is available! Before, we was obliged to use the routing services into an other virtual machine for example.</p>
<p><img loading="lazy" data-attachment-id="680" data-permalink="https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/vswitch/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png" data-orig-size="981,153" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="VSwitch" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=700" class="alignnone size-full wp-image-680" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=700" alt="VSwitch"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png 981w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=150&amp;h=23 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=300&amp;h=47 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png?w=768&amp;h=120 768w" sizes="(max-width: 981px) 100vw, 981px" /></p>
<p>On Linux I was able to create my containers using the same network stack as my host. So I had just to create ports forwarding rules from my host to my container. To achieve this goal we use &#8211;net=Host option.</p>
<p>I created a container from the WindowsServerCore image using this command:</p>
<p><img loading="lazy" data-attachment-id="679" data-permalink="https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/conterror/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png" data-orig-size="976,160" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ContError" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=700" class="alignnone size-full wp-image-679" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=700" alt="ContError"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png 976w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=150&amp;h=25 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=300&amp;h=49 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png?w=768&amp;h=126 768w" sizes="(max-width: 976px) 100vw, 976px" /></p>
<p>However this option is not accepted. How to configure my docker network?</p>
<p>Under Windows, a file named &#8220;runDockerDaemon.cmd&#8221; located under c:\ProgramData\docker folder defines the default VSwitch to use when creating containers.</p>
<p><img loading="lazy" data-attachment-id="684" data-permalink="https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/rundocker/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png" data-orig-size="646,346" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="runDocker" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png?w=646" class="alignnone size-full wp-image-684" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png?w=700" alt="runDocker"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png 646w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png?w=150&amp;h=80 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png?w=300&amp;h=161 300w" sizes="(max-width: 646px) 100vw, 646px" /></p>
<p>As expected, the &#8220;Virtual Switch&#8221; switch is defined by default. If you want to use an external vswitch, you have just to define it in the runDockerDaemon file.</p>
<blockquote><p>@echo off<br />
set certs=%ProgramData%\docker\certs.d</p>
<p>if exist %ProgramData%\docker (goto :run)<br />
mkdir %ProgramData%\docker</p>
<p>:run<br />
if exist %certs%\server-cert.pem (if exist %ProgramData%\docker\tag.txt (goto :secure))</p>
<p>docker daemon -D -b &#8220;Virtual Switch&#8221;<br />
goto :eof</p>
<p>:secure<br />
docker daemon -D -b &#8220;Virtual Switch&#8221; -H 0.0.0.0:2376 &#8211;tlsverify &#8211;tlscacert=%certs%\ca.pem &#8211;tlscert=%certs%\server-cert.pem &#8211;tlskey=%certs%\server-key.pem</p></blockquote>
<p>According to Microsoft, &#8220;Each container needs to be attached to a virtual switch in order to communicate over a network. A virtual switch is created with the <code>New-VMSwitch</code> command. Containers support a virtual switch with type <code>External</code> or <code>NAT"</code></p>
<p>I think that with VSwitches containers manage their own networks stacks. An overhead is created consequently. Under Linux, we can bypass this layer and use the host network stack directly.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/02/26/nethost-option-not-recognized-under-windows-2016-ctp4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">639</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/vswitch.png">
			<media:title type="html">VSwitch</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/conterror.png">
			<media:title type="html">ContError</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/rundocker.png">
			<media:title type="html">runDocker</media:title>
		</media:content>
	</item>
		<item>
		<title>Via docker, I noticed that Mono 4.2.1 is faster than Mono 3.2.8</title>
		<link>https://ramzibot.wordpress.com/2016/02/14/via-docker-i-noticed-that-mono-4-2-1-is-faster-than-mono-3-2-8/</link>
					<comments>https://ramzibot.wordpress.com/2016/02/14/via-docker-i-noticed-that-mono-4-2-1-is-faster-than-mono-3-2-8/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Sun, 14 Feb 2016 23:28:33 +0000</pubDate>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=608</guid>

					<description><![CDATA[Hi again, I am developping a prototype of micrsoservices running into docker containers. These micrsoservices process files operations using WCF. It will be perhaps the topic of future articles incha Ellah. On my Ubuntu 15.04 machine I have installed Mono 3.2.8 shiped with Monodevelop. I installed docker and the latest mono image from the hub. &#8230; <a href="https://ramzibot.wordpress.com/2016/02/14/via-docker-i-noticed-that-mono-4-2-1-is-faster-than-mono-3-2-8/" class="more-link">Continue reading <span class="screen-reader-text">Via docker, I noticed that Mono 4.2.1 is faster than Mono&#160;3.2.8</span></a>]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" data-attachment-id="632" data-permalink="https://ramzibot.wordpress.com/2016/02/14/via-docker-i-noticed-that-mono-4-2-1-is-faster-than-mono-3-2-8/container/" data-orig-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png" data-orig-size="978,253" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="container" data-image-description="" data-image-caption="" data-medium-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=300" data-large-file="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=700" class="alignnone size-full wp-image-632" src="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=700" alt="container"   srcset="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png 978w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=150&amp;h=39 150w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=300&amp;h=78 300w, https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png?w=768&amp;h=199 768w" sizes="(max-width: 978px) 100vw, 978px" /></p>
<p>Hi again,</p>
<p>I am developping a prototype of micrsoservices running into docker containers. These micrsoservices process files operations using WCF. It will be perhaps the topic of future articles incha Ellah.</p>
<p>On my Ubuntu 15.04 machine I have installed Mono 3.2.8 shiped with Monodevelop. I installed docker and the latest mono image from the hub.</p>
<p>To study the overhead of my microservice, the same web service was also executed on my host. A windows application was used to consume the web services.</p>
<p>According to my tests when writing sequentially files, I noticed that my docker webservice responded faster than my webservice on the host.</p>
<p>As the docker container is sharing the same kernel as my host, I consulted the version of the mono installed in the image from which I created my container using this command:</p>
<blockquote>
<p style="text-align:center;">docker <strong>exec</strong> -it &#8220;myDockerName or ID&#8221; mono &#8211;version</p>
</blockquote>
<p>Bingo!!! Mono 4.2.1 was installed into my container. To verify that my hypothesis is correct, I updated my Mono on the host. The results were similar finally!</p>
<p>Thank you docker! And thank you Mono!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/02/14/via-docker-i-noticed-that-mono-4-2-1-is-faster-than-mono-3-2-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">608</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>

		<media:content medium="image" url="https://ramzibot.wordpress.com/wp-content/uploads/2016/02/container.png">
			<media:title type="html">container</media:title>
		</media:content>
	</item>
		<item>
		<title>Certificate validation error can cause broken images in reporting services reports</title>
		<link>https://ramzibot.wordpress.com/2016/01/16/certificate-validation-error-can-cause-broken-images-in-reporting-services-reports/</link>
					<comments>https://ramzibot.wordpress.com/2016/01/16/certificate-validation-error-can-cause-broken-images-in-reporting-services-reports/#respond</comments>
		
		<dc:creator><![CDATA[ramzibot]]></dc:creator>
		<pubDate>Sat, 16 Jan 2016 17:38:53 +0000</pubDate>
				<category><![CDATA[MS Technologies]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[Reporting Services]]></category>
		<guid isPermaLink="false">http://ramzibot.wordpress.com/?p=604</guid>

					<description><![CDATA[Hi! I am so happy to meet WordPress readers again! In some reports, images components are configured as external links but using https protocol. The links are working fine using different browsers and the public certificate is validated. However using external links with http protocol are working correctly while executing reports. After googling the issue, &#8230; <a href="https://ramzibot.wordpress.com/2016/01/16/certificate-validation-error-can-cause-broken-images-in-reporting-services-reports/" class="more-link">Continue reading <span class="screen-reader-text">Certificate validation error can cause broken images in reporting services&#160;reports</span></a>]]></description>
										<content:encoded><![CDATA[<p>Hi!</p>
<p>I am so happy to meet WordPress readers again!</p>
<p>In some reports, images components are configured as external links but using https protocol. The links are working fine using different browsers and the public certificate is validated.</p>
<p>However using external links with http protocol are working correctly while executing reports. After googling the issue, I could find some answers speaking about Configuring the Unattended Execution Account to allow access to external ressources from reports like UNC files.</p>
<p>In my case, no proxy, no authentication are required to access web ressources.</p>
<p>On the reporting server, I opened an exetrnal link in the browser and bingo!!!!; my certificate could not be validated. I was obliged to install the root certificate on my server to have the certificate validated.</p>
<p>After that, the images were displayed correctly finally!</p>
<p>Hope it helps!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ramzibot.wordpress.com/2016/01/16/certificate-validation-error-can-cause-broken-images-in-reporting-services-reports/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">604</post-id>
		<media:content medium="image" url="https://1.gravatar.com/avatar/4f3a2d69ebb0bceed0f99ebeed2bee69e1e45e2d1046b3495c79c712461fe3df?s=96&amp;d=identicon&amp;r=G">
			<media:title type="html">ramzibot</media:title>
		</media:content>
	</item>
	</channel>
</rss>