<p>Hi Everybody. </p>
<p>I'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'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 =></p>
<pre><code>#config.vm.provision "shell", path: "install_docker.sh"
</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'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'm going to assume "Vagrant == bad, Otto == good" is not the whole story. Is there a place for both? Is one better suited for dealing with microservices than the other? I'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='go' 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's written in Go so that's a good approach. Hashicorp got good with Go over the years. </p>
<p>I'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's pretty insane at the moment. I would say, give a year at least to try and catch up with today's needs and maybe they will get into a point where otto is useful. Because it relies on magic, and something they call "industry best practices" 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
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传