Variadic Go Dev Containers for Development

xuanbao · · 536 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi Everyone! </p> <p>I&#39;m here to share with you guys my variadic docker container that I&#39;m using to develop go apps. There is more detailed description on the page about usage. You have a base image, which is Alpine based, and then you build your own Dockerfile and specify the repo and user you want as build arguments. So you will have a container per repo. And I&#39;m using <a href="https://github.com/Masterminds/glide" rel="nofollow">Glide</a> as a dependency management tool.</p> <p>You will have a clean environment to work with. Some tools that are installed include, mc, lynx, vim-go.</p> <p>I was using a VM for a very long time, but now, with Docker Beta running on Mac, it&#39;s trivial to use containers. The base image is ~421MB with everything installed.</p> <p>I hope it helps. Enjoy, any comments are very welcomed. :) </p> <p><a href="https://hub.docker.com/r/skarlso/godevbase/" rel="nofollow">https://hub.docker.com/r/skarlso/godevbase/</a></p> <p>Here is an example container which I&#39;m using for Hugo development =&gt; <a href="https://hub.docker.com/r/skarlso/godevhugo/" rel="nofollow">https://hub.docker.com/r/skarlso/godevhugo/</a>. The image is ~544MBs. It&#39;s pretty neat. :)</p> <p>Cheers!</p> <hr/>**评论:**<br/><br/>tmornini: <pre><blockquote> <p>Docker Beta running on Mac</p> </blockquote> <p>Is that different than what I&#39;m running on my Mac?</p> <p>~ $ docker -v</p> <p>Docker version 1.11.2, build b9f10c9</p></pre>Akkifokkusu: <pre><p>He&#39;s probably talking about the server, which can now run &#34;natively&#34; on Mac instead of inside a VirtualBox VM.</p></pre>tmornini: <pre><p>Oh, damn, that&#39;s cool and I hadn&#39;t heard about it.</p> <p>Thanks!</p></pre>skarlso: <pre><p>Yepp, what Akki was talking about. :-)</p></pre>ChristophBerger: <pre><p>More on this: <a href="https://docs.docker.com/docker-for-mac/docker-toolbox/" rel="nofollow">Docker for Mac vs. Docker Toolbox</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

536 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传