impactlab / eemeter

‼️ MOVED TO https://github.com/openeemeter/eemeter - Core computation engine for the Open Energy Efficiency Meter
https://eemeter.readthedocs.io/
MIT License
25 stars 13 forks source link

Proof of concept Vagrant setup #125

Closed marcrecurve closed 8 years ago

marcrecurve commented 8 years ago

More notes later. For now...

Vanilla install of dev env doesn't seem to work. Numpy compilation fails for some reason. Also there are some missing steps in the directions (e.g. assumes virtualenvwrapper is installed)

In past projects, have worked to encapsulating a full dev environment in Vagrant. The setup below allows you to do a vagrant up then vagrant ssh, and immediately run the tests. (Well, sort of...I need to clean the script up a little, but it's close.)

The benefit beyond a single command for initial set up is that it unifies dev boxes across the org. No more asking "what version of python do you have installed?", since it's scripted in the provision of the Vagrant box.

Possible to do this with Docker instead of Vagrant. Also possible to use Docker as a driver for Vagrant.

Also seems worth considering where to create Vagrantfiles. One in this repo? One for the base level dev environment that you can install multiple OEE components into? Others?

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 0.0% when pulling 28048f11f5e7371e2e55bd7a244c16ea0c307408 on vagrant-demo into 74103dd12632269b9a2c418197272151af6e9380 on master.

philngo commented 8 years ago

Numpy installation can be a bit sticky. Often we find ourselves using Anaconda.

It probably makes sense to standardize the dev setup, and Vagrant is probably the way to do that, in preference to Docker. Although it probably makes sense to consider setting up a base-level environment eventually, because there is definitely some overlap, and often we develop across the whole stack, let's stick with one vagrant file per repo at first to keep things simple.

philngo commented 8 years ago

Oh - can I have you pull request into develop instead?

marcrecurve commented 8 years ago

Aiming to do this in a separate repo, one Vagrantfile for the whole stack.