<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ydhprs on Medium]]></title>
        <description><![CDATA[Stories by ydhprs on Medium]]></description>
        <link>https://medium.com/@ydhprs?source=rss-d8d21d561a15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Xz3jORMHGm9m07D2.jpeg</url>
            <title>Stories by ydhprs on Medium</title>
            <link>https://medium.com/@ydhprs?source=rss-d8d21d561a15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:37:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ydhprs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Squashing Docker Images]]></title>
            <link>https://medium.com/tunaiku-tech/squasing-docker-images-dcd5bea8cf09?source=rss-d8d21d561a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcd5bea8cf09</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[ydhprs]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 02:52:36 GMT</pubDate>
            <atom:updated>2018-06-27T03:07:37.764Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*yRcI2Y7WBKbSTsEuqVLPyg.jpeg" /><figcaption>Image Source : <a href="https://nickjanetakis.com/blog/differences-between-a-dockerfile-docker-image-and-docker-container">https://nickjanetakis.com/blog/differences-between-a-dockerfile-docker-image-and-docker-container</a></figcaption></figure><p>tldr; my english is not so good. but at least, i’m trying to write.</p><p>So, finally your project/apps already containerized? well, congratulation then! but hold on, how about the size? how much disk you will be used? is it still ok to running with that size?. Your container will be grown up, especially when you implemented CI/CD things. That mobby dick whale will be hungry in space. So, how you deal with it?</p><p>There is a lot of verses outside there to handle your mobby dick whale. Even docker official is already handle it with the option: “--squash&quot; when you build the image, you can check the details in <a href="https://docs.docker.com/engine/reference/commandline/image_build/">here</a>. But, the problem is — <em>at least for my self</em> — this <em>option</em> is still in experimental daemon when this article is write in.</p><p>Then how do we do to compressing the size of the whale? here we go.</p><p><strong>Use the right image for the right services</strong></p><p>Is it horrible if i just use base images like this one:</p><pre>FROM ubuntu<br>RUN apt-get update<br>RUN apt-get install<br>bla bla bla</pre><p>No is not. We will not talk about horrible or not. We will talk about appropriateness and efficiency. It’s like; it is horrible if we using underpants outside our pants? no it will. But when you walking arround, people will be staring at you and you know what is the rest story is.</p><p>What will you get if you doing like this as above is, you will get like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*WbwNOj0c_jYxPkAurHp1Ag.png" /></figure><p>And only for those 2 of lines, we will get the cost size of files like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*Ick1grBrfiizVkKy9u9TvA.png" /></figure><p>Imagine how you will get if you add more and more complexity task in your Dockerfiles?</p><p>So how the solution is?</p><p>Docker repository it self provide you with the tons of official open source project. If your project started with php, ruby and etc, just use the official images from <a href="https://hub.docker.com/explore/">here</a>. For example is, if your project started using php you can start like this one:</p><pre>FROM php:7.0</pre><pre>COPY bla bla<br>ADD blabla<br></pre><p>Just it. You didn’t need compile the php it self, update your base images, configure it with the bla bla bla and etc. Everything is packed and you only use it and btw, it’s half the size of the previous one.</p><p><strong>Use as few layers as required</strong></p><p>As we know, docker is layered. The more layer you have, the more size you will get. Everything is calculated. So, instead of doing like this:</p><pre>FROM php:7.0</pre><pre>RUN apk-update -y <br>RUN apk-install package_a_b_c -y<br>RUN apk-install package_d_e_f -y</pre><p>You can packed to the single layer like this:</p><pre>FROM php:7.0</pre><pre>RUN apk-update -y &amp;&amp; \ <br>apk-install package_a_b_c apk-install package_d_e_f -y</pre><p><strong>Keep up tidy</strong></p><p>It’s not hard to clean up the things you didnt need, right?. So, instead you create Dockerfiles like this one:</p><pre>RUN wget <a href="http://blabla.com/app">http://blabla.com/app</a><br>RUN tar -xzf app.tar.gz</pre><p>or this one:</p><pre>RUN apt-get update -y &amp;&amp; \<br>apt-get install package-a package-b -y</pre><p>You can clean it up the unnecessary things with this one</p><pre>RUN wget http://blabla.com/app &amp;&amp; tar -xzf app.tar.gz &amp;&amp; rm app.tar.gz</pre><p>And this one</p><pre>RUN apt-get update -y &amp;&amp; \<br>apt-get install package-a package-b &amp;&amp; \<br>apt-get clean autoclean &amp;&amp; \           <br>apt-get autoremove -y &amp;&amp; \  <br>rm -rf /var/lib/apt/lists/* &amp;&amp; \<br>rm -f /var/cache/apt/archives/*.deb</pre><p><strong>Conclusion</strong></p><p>There are many other tips out there. Dont be afraid to always doing trial and error. Dont be affraid to learning something new you’ve tried for the first time. Dont be affraid to become yelled as numb or maybe dumb. Because once you called numb or dumb by someone, that means you must learn a lot on it. And you know, it’s not easy to get stupid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcd5bea8cf09" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tunaiku-tech/squasing-docker-images-dcd5bea8cf09">Squashing Docker Images</a> was originally published in <a href="https://medium.com/tunaiku-tech">Tunaiku Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Siapa yang perlu orang pintar?]]></title>
            <link>https://medium.com/@ydhprs/siapa-yang-perlu-orang-pintar-2800ab313350?source=rss-d8d21d561a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/2800ab313350</guid>
            <dc:creator><![CDATA[ydhprs]]></dc:creator>
            <pubDate>Thu, 31 May 2018 22:48:20 GMT</pubDate>
            <atom:updated>2018-05-31T22:50:28.698Z</atom:updated>
            <content:encoded><![CDATA[<p>Ini 2018</p><p>Semua orang datang dari segala lini lintasan. Baik dari lintasan batas negara, batas kultur, batas keilmuan dan segala jenis batas lain yang entah atau bahkan justru belum terindikasikan. Lalu muncul satu permasalah — setidaknya buat saya pribadi — yang cukup menggelitik mulai dari tahun ke tahun sampai dengan sekarang.</p><p>Pintar.</p><p>Siapa yang mencari orang pintar atau mungkin diksinya bisa dikasih sedikit beban menjadi; siapa yang perlu orang pintar?</p><p>Bagi saya, pertanyaan tersebut mungkin agak <em>related </em>kalau kita sedang berada di tahun 1970 atau mungkin sedang berada di masa-masa revolusi industri uap sedang jaya-jayanya. Masa di mana orang pintar dicari dan dibutuhkan. Tapi, apakah untuk tahun-tahun dimana revolusi internet sedang gencar dan <em>startup </em>menjamur seperti ini, apakah orang pintar masih cukup relevan untuk dicari? mungkin anda perlu, tapi tidak untuk saya. Setidaknya ketika bekerja dengan <em>circle </em>saya.</p><p>Bahasan perlu tidaknya orang pintar ini akan sangat meluas kalau diangkat dengan dimasak dengan beraneka macam bumbu seperti: lulusannya mana?, selesai atau tidak sekolahnya?, siapa saja angkatannya?, dulu IPnya berapa? dan lain yang sebagainya. Tapi, saya memilih untuk tidak masuk dalam pembahasan hal tsb.</p><p>Bekerja di startup adalah bekerja dengan kemampuan dan kreativitas. Ya, sebut aja ini adalah ke-sok-tahuan saya dalam industri yang geraknya selalu berubah detik tiap detiknya. Tapi, sejauh yang saya dalami selama bekerja dalam industri ini, hak seseorang yang pintar untuk dapat bekerja dalam industri ini adalah berada di nomor 3 atau bahkan ke-<em>n </em>sekian.</p><p>Ada yang lebih krusial dan sangat penting ketika memilih untuk terjun masuk kedalam industri ini. Yaitu: kemampuan berkerjasama.</p><p>Apakah salah jika suatu <em>startup </em>mempunyai team yang super amazing? lulusan perguruan tinggi ternama dan dengan tingkat kepintaran yang super? No. Itu tidak salah dan bukan hak saya juga untuk menjadi seorang juri kepantasan mana yang salah/tidak patut dan mana yang benar/patut.</p><blockquote><em>Tapi diawal tadi dirimu mengklaim bahwa kepintaran bukan suatu hal yang penting</em></blockquote><p>Ya, itu benar. Tapi semisal ada suatu perusahaan yang memang mempunyai team super avenger dan kerjasama mereka baik tiap lininya, kenapa tidak?</p><p><strong>Well, basically </strong>← mengutip kata-kata anak startup yang selalu ngetren ketika berbicara, pintar itu harus memang. Tapi, di era jaman yang selalu berjalan dengan kecepatan yang terus dan terus bertambah di tiap eranya, kemampuan untuk bekerjasama itu adalah kemampuan paling penting.</p><p>Jadi, siapa yang perlu orang pintar?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2800ab313350" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test]]></title>
            <link>https://medium.com/@ydhprs/test-d36c5f015e8b?source=rss-d8d21d561a15------2</link>
            <guid isPermaLink="false">https://medium.com/p/d36c5f015e8b</guid>
            <dc:creator><![CDATA[ydhprs]]></dc:creator>
            <pubDate>Tue, 18 Jul 2017 14:44:55 GMT</pubDate>
            <atom:updated>2017-07-18T14:44:55.995Z</atom:updated>
            <content:encoded><![CDATA[<p>Karena ini adalah test.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d36c5f015e8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>