<p>Hi Everyone! </p>
<p>I'm here to share with you guys my variadic docker container that I'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'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'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'm using for Hugo development => <a href="https://hub.docker.com/r/skarlso/godevhugo/" rel="nofollow">https://hub.docker.com/r/skarlso/godevhugo/</a>. The image is ~544MBs. It'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'm running on my Mac?</p>
<p>~ $ docker -v</p>
<p>Docker version 1.11.2, build b9f10c9</p></pre>Akkifokkusu: <pre><p>He's probably talking about the server, which can now run "natively" on Mac instead of inside a VirtualBox VM.</p></pre>tmornini: <pre><p>Oh, damn, that's cool and I hadn'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
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传