<?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 Brian Porter on Medium]]></title>
        <description><![CDATA[Stories by Brian Porter on Medium]]></description>
        <link>https://medium.com/@poornerd?source=rss-4b3416d1c695------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AXaRthvlgxcAHsOP.png</url>
            <title>Stories by Brian Porter on Medium</title>
            <link>https://medium.com/@poornerd?source=rss-4b3416d1c695------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:33:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@poornerd/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[It is now this easy to Dockerize a Play! Framework Application]]></title>
            <link>https://medium.com/@poornerd/it-is-now-this-easy-to-dockerize-a-play-framework-application-d3035232fd18?source=rss-4b3416d1c695------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3035232fd18</guid>
            <category><![CDATA[play-framework]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Brian Porter]]></dc:creator>
            <pubDate>Sat, 18 Apr 2015 07:19:29 GMT</pubDate>
            <atom:updated>2015-04-18T07:19:29.526Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you want to build a dock­er­ized Play! Frame­work appli­ca­tion to deploy on a Docker server?</p><p><a href="https://github.com/muuki88">Nepo­muk Seiler</a> actu­ally tweeted about this awhile back, but I didn’t real­ize until today how easy it was to do.</p><p>First off make sure you already have docker run­ning. I am using OSX, so I used <a href="http://boot2docker.io/">boot2docker</a> and fol­lowed these <a href="https://docs.docker.com/installation/mac/">instruc­tions</a>. If you don’t always read all the instruc­tions I like do, then check out these two tips for run­ning <strong>boot2docker</strong> on OSX:</p><ul><li>make sure you set the envi­ron­ment vari­able set like: export DOCKER_HOST=tcp://192.168.59.103:2375</li><li>make sure that once the appli­ca­tion is run­ning you access it with the docker IP, and not localhost</li></ul><p>Then fol­low the <a href="https://github.com/muuki88/sbt-native-packager-examples/tree/master/play-2.3">README​.md</a> instruc­tions here: <a href="https://github.com/muuki88/sbt-native-packager-examples/tree/master/play-2.3">https://​github​.com/​m​u​u​k​i​8​8​/​s​b​t​-​n​a​t​i​v​e​-​p​a​c​k​a​g​e​r​-​e​x​a​m​p​l​e​s​/​t​r​e​e​/​m​a​s​t​e​r​/​p​l​a​y​-​2.3</a></p><ol><li>Add the depen­den­cies to your build.sbt</li></ol><blockquote>import NativePackagerKeys._</blockquote><blockquote>// setting a maintainer which is used for all packaging types<br>maintainer:= “Your Name”</blockquote><blockquote>// exposing the play ports<br>dockerExposedPorts in Docker := Seq(9000, 9443)</blockquote><blockquote>// run this with: docker run -p 9000:9000 &lt;name&gt;:&lt;version&gt;</blockquote><p>2. Then build it</p><blockquote>sbt docker:publishLocal</blockquote><p>3. Then run it! (replace the “play-2–3″ with your name from the build.sbt, and the “1.0-SNAPSHOT” with your version)</p><blockquote>docker run -p 9000:9000 play-2–3:1.0-SNAPSHOT</blockquote><p>Once it is run­ning, use the DOCKER_HOST IP to access it like: <a href="http://192.168.59.103:9000/">http://192.168.59.103:9000</a></p><p>There you go, the next step is to figure out how to run the the Play!Framework with dif­fer­ent con­fig­u­ra­tion files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3035232fd18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>