<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on Erwähnenswert</title><link>https://blog.lgohlke.de/tags/docker/</link><description>Recent content in Docker on Erwähnenswert</description><generator>Hugo</generator><language>de-de</language><lastBuildDate>Tue, 01 Mar 2016 13:23:07 +0000</lastBuildDate><atom:link href="https://blog.lgohlke.de/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>h2o webserver with docker</title><link>https://blog.lgohlke.de/posts/2016-03-01-dockerized-h2o-webserver/</link><pubDate>Tue, 01 Mar 2016 13:23:07 +0000</pubDate><guid>https://blog.lgohlke.de/posts/2016-03-01-dockerized-h2o-webserver/</guid><description>&lt;p&gt;&lt;a href="https://h2o.examp1e.net/" class="external-link" target="_blank" rel="noopener"&gt;h2o&lt;/a&gt; was one of the earliest webserver supporting &lt;a href="https://web.archive.org/web/20170320065739/https://searchenginewatch.com/2016/02/29/what-is-http2-and-how-does-it-affect-us/" class="external-link" target="_blank" rel="noopener"&gt;http2&lt;/a&gt;. To make the usability just a bit more convinient I packaged it as Docker image. Available at &lt;a href="https://hub.docker.com/r/lkwg82/h2o-http2-server/" class="external-link" target="_blank" rel="noopener"&gt;lkwg82/h2o-http2-server&lt;/a&gt; and will be kept in sync with new versions.&lt;/p&gt;
&lt;h2 id="what-is-h2o"&gt;
 What is h2o?
 &lt;a class="heading-link" href="#what-is-h2o"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;H2O is a new generation HTTP server that provides quicker response to users with less CPU utilization when compared to older generation of web servers. Designed from ground-up, the server takes full advantage of HTTP/2 features including prioritized content serving and server push, promising outstanding experience to the visitors of your web site.&lt;/p&gt;</description></item><item><title>Isolated web tests in docker</title><link>https://blog.lgohlke.de/posts/2015-10-25-isolated-web-tests-in-docker/</link><pubDate>Sun, 25 Oct 2015 21:23:07 +0000</pubDate><guid>https://blog.lgohlke.de/posts/2015-10-25-isolated-web-tests-in-docker/</guid><description>&lt;p&gt;This is a simple tutorial to show you how easy it can be to run isolated webtests in docker.&lt;/p&gt;
&lt;p&gt;Presumed you want to run your webtests in an isolated environment for the following reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;isolation from other test runs (same ports/same directories/&amp;hellip;)&lt;/li&gt;
&lt;li&gt;automatic cleanup of &amp;hellip;
&lt;ul&gt;
&lt;li&gt;orphaned processes (to avoid memory leaks of test agent)&lt;/li&gt;
&lt;li&gt;cleanup of build files (not filling disk up with temporary files)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;repeatability (of course)&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Btw. with &lt;em&gt;build files&lt;/em&gt; I include the temporary container and images as well. (I just had a bunch of stability tests, which means running tests more than 50 times. I had local memory fuckups twice.)&lt;/p&gt;</description></item><item><title>Detect when docker instance reached memory limit</title><link>https://blog.lgohlke.de/posts/2015-10-25-detect-when-docker-instance-reached-memory-limit/</link><pubDate>Sat, 24 Oct 2015 21:23:07 +0000</pubDate><guid>https://blog.lgohlke.de/posts/2015-10-25-detect-when-docker-instance-reached-memory-limit/</guid><description>&lt;p&gt;I&amp;rsquo;d like to know if my test instance reached the memory limit and behaves a kind of different after that.&lt;/p&gt;
&lt;h2 id="simple-but-slightly-incorrect-approach"&gt;
 simple but slightly incorrect approach
 &lt;a class="heading-link" href="#simple-but-slightly-incorrect-approach"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Just grab the kernel logs for oom-killer for the particular container id.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ CONTAINER_ID&lt;span style="color:#f92672"&gt;=&lt;/span&gt;84ec6201e6a54
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ dmesg -T | grep -B2 docker-$CONTAINER_ID | grep -B1 oom-killer
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;outputs&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;--
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;[&lt;/span&gt;Sun Oct &lt;span style="color:#ae81ff"&gt;25&lt;/span&gt; 22:06:17 2015&lt;span style="color:#f92672"&gt;]&lt;/span&gt; java invoked oom-killer: gfp_mask&lt;span style="color:#f92672"&gt;=&lt;/span&gt;0xd0, order&lt;span style="color:#f92672"&gt;=&lt;/span&gt;0, oom_score_adj&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Limitation: This implies that kernel logs before and after are about the same issue.&lt;/p&gt;</description></item></channel></rss>