K
K
ksim_miloff2017-02-13 08:55:04
Ruby on Rails
ksim_miloff, 2017-02-13 08:55:04

What is the best way to set up a development environment on Windows for a person who is used to Ubuntu?

Hello,
I got into a big ROR project, which is mainly driven by a foreign team, the guys use MacOS and Ubuntu, actively using Docker. Recently, in the branch of this company, in my city, a local development department was opened for the same project. It so happened that the branch's IT policy is completely different, and here everyone has Win7 without exception. You have to use a virtual machine on which ubuntu is spinning. In general, I am for ubuntu, but I don’t like to constantly jump from virtual machines to Windows, tk. I often have to use corporate Windows software.
Since Windows cannot be abandoned, then I want to move the development to Windows as much as possible, and leave Ubuntu only as the platform on which the application is running. Those. i want to code in windows (i.e. that my code edits are automatically sent to the ubuntu project) and check the result in windows (i.e. through a browser), i want to have a command line associated with ubuntu.
The original question was more vague, but the comments suggested that a vagrant could help me. Of course, now I’ll go read about the vagrant and so on, but I would like to read a couple more opinions / tips.
Thank you all very much.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
OnYourLips, 2017-02-13
@OnYourLips

This is of course an option, but I worked like this a couple of years ago and it was inconvenient, very inconvenient.
There are no particular inconveniences. Everything works transparently.
The wiki says that Vagrant knows how to work with docker, so I can do a little Docker.
There are better solutions for docker. You don't need a vagrant for this.
There are no special problems in Windows, and usability is very pleasant, but it will constantly surprise you. Not just like that, even at its cost, this is the most popular OS.

S
sim3x, 2017-02-13
@sim3x

If they are sawing on pop and work only on Windows, then I advise you to change jobs
. Such corrals are a bell that not everything is ok with the head of the management. There is
so much material on the Internet for setting up a vagrant for anything that a company with their Windows infrastructure should already have a batch file to expand the environment for development in one click
If it is not there, then this is the second call

A
Alexey, 2017-02-13
@MAKAPOH

I sat for about a year in a similar position under win7. I used:
virtualbox , vagrant and conemu . The standard documentation was enough for me to configure . Then we start the virtual machine, connect via ssh and work. The source code can be edited in windows thanks to synced folders. And as already mentioned, there should not be symbolic links in your synchronized directory, or rather, they can be, but the software that uses them from the virtual machine most likely will not work.
True, my project was in python, I don’t know if there are any fundamental differences from ruby.

Have you come across docker? If so, don't you
think its volumes will help solve the problem with symbolic links?
I came across docker, but did not use volumes on Windows. Try it, it might work. I ran the Postgres base under Windows in the docker, in principle, everything is the same as in Linux, everything is very smoothly integrated. In fact, this is the same as with vagrant, but instead of virtualbox there will be HyperV and the ubunta image will be slightly cut (but not critical, everything can be reinstalled).
Docker seems to already know how to work with Windows
Yes, there is an installer and a graphical docker control utility. Looks high quality :) but my experience with it is minimal.
"connect via ssh" - working with the ubunt console from Windows?
Yes.
Is it possible to forward ports from a virtual machine and watch the application through a Windows browser?
Yes
Last question: are the hardware requirements high?
I drove my project on 512 MB of RAM. The application server and the Postgres database (very small) worked in the virtual machine. No problems, ubuntu version is 14.04

I
Ivan, 2017-02-13
@LiguidCool

I do not really understand how Vagrant will help here. And in general, the tool is quite specific ...
PS
In fact, what to work on in parallel is a matter of habit. If the employer is ready to waste time getting used to you - well, this is his problem.

Q
qlkvg, 2017-02-13
@qlkvg

It is not very clear what specifically does not suit Windows. If you use a cross-platform development environment, then there should be no problems. I have ubuntu at work and windows 10 at home. Pycharm is the same here and there, browsers too, for ssh access, git'a and some other little things - a terminator for cygwin (IMHO it is an order of magnitude more convenient than putty and a separate git-bash). Any system settings "for yourself", such as system hotkeys, boring wallpapers, etc. done in half a day with knowledge of the system, and in a day with complete ignorance, but owning Google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question