Go Development Environment with Vagrant

agolangf · · 721 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi Everybody. </p> <p>I&#39;ve created a Go development environment with vagrant. If you are on Windows or Mac, and want a Linux dev environment, because you are trying to contribute to docker for example, it&#39;s just a <code>vagrant up</code> away. </p> <p>This sets up vim-go and Docker optionally. Currently docker install is disabled, but all you have to do is just uncomment this line =&gt;</p> <pre><code>#config.vm.provision &#34;shell&#34;, path: &#34;install_docker.sh&#34; </code></pre> <p><a href="https://github.com/Skarlso/godevelopment">Go Development Environment</a></p> <p>It also adds a bunch of stuff to vim and configures it with ctags and auto-complete with YouCompleteMe.</p> <p>Need anything more set-up? Just submit an Issue, I&#39;m happy to help.</p> <p>Enjoy! </p> <hr/>**评论:**<br/><br/>EclecticMind: <pre><p>I apologize if this detracts from the work being shared here but I was curious if anyone here is familiar with Otto. Hashicorp introduced it as the replacement for Vagrant, if I recall correctly. I&#39;m going to assume &#34;Vagrant == bad, Otto == good&#34; is not the whole story. Is there a place for both? Is one better suited for dealing with microservices than the other? I&#39;m not overly familiar with Vagrant aside from the basics. </p></pre>skarlso: <pre><p>Hi. </p> <p>I am familiar with Otto. Yes, they aim to do that but Otto is far from complete or even being competent. Also, Otto is application focused rather than being environment specific. With Otto you can setup a project with a configured infrastructure and add in dependencies automatically. Like, this, what I did, if it would be Docker specific, I could setup a Go infrastructure make it of type=&#39;go&#39; and do a project called docker-develop or something like that. </p> <p>But here, with Vagrant, I was aiming for a general infrastructure for any kind of project. Otto is nice, if you want automatic dependancy handling for A project, but I think it still lacks parts of which Vagrant provides, which is an easy way to configure a general environment which could be of any kind. </p> <p>It&#39;s written in Go so that&#39;s a good approach. Hashicorp got good with Go over the years. </p> <p>I&#39;m sure they will get there eventually, but for now, Otto is beta, whatever they say. :-)</p></pre>skarlso: <pre><p>I added an Otto example for you how you would go ahead and try to set this up using Otto. But it&#39;s pretty insane at the moment. I would say, give a year at least to try and catch up with today&#39;s needs and maybe they will get into a point where otto is useful. Because it relies on magic, and something they call &#34;industry best practices&#34; I fear that it will never really take off. For example, even getting it to NOT use ubuntu precise was a b*tch. Hope this answers your question. :)</p> <p>Cheers!</p></pre>EclecticMind: <pre><p>Kudos!</p></pre>

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

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