On Thu, Apr 14, 2016 at 5:53 PM, Pierre-Yves Chibon <pingou@pingoured.fr> wrote:
On Thu, Apr 14, 2016 at 11:37:11AM +1000, Ryan Lerch wrote:
>    As a designer, when I jump into doing a UI review, or hacking on the
>    templates / CSS of a new project, one of the most painful steps for me is
>    getting my dev environment set up.
>
>    Most of our webapps do have very good documentation on getting a dev
>    environment set up, but invariably this takes a good chunk of time and
>    fiddling for me (being someone that is not super-familiar with setting up
>    and running the back-ends of webapps). This is especially relevant if what
>    i am trying to fix is just a simple template change, and TBH manually
>    tweaking postgres config files is not really my idea of a good time. :)
>
>    Long story short, i am asking for comments and thoughts on how to make
>    setting up a dev environment simpler and easier (and perhaps even
>    standardized between all our apps).
>
>    I recently started playing with Vagrant, and made this vagrant setup[1]
>    for bootstrapping a bodhi dev envirionment using Vagrant on top of
>    vagrant-libvirt, and it works pretty well for me -- i can just use one
>    command to spin up a new clean instance of a bodhi dev environment, with
>    the DB configured and populated and ready to go. Note that i chose libvirt
>    with Vagrant here, primarily because i am not well versed in Docker, but
>    Docker on Vagrant is possible too.
>
>    [1] - https://gist.github.com/ryanlerch/577eb8cd9d8ff66023cb2f98dc78bfe5

I am all for vagrant or docker for my apps, I do think it would make things way
easier for new contributors to get started.

I know I've been meaning to get faitout on docker so that one could run a local
instance of faitout, but still haven't done it.

On the docker vs vagrant, I have no idea, I must confess I lack knowledge on
both (played w/ docker once over a year ago, never with vagrant).

We can use Docker with vagrant too. But i don't know too much about Docker,
so in my use of Vagrant, i pretty much have stuck with using libvirt with Vagrant
to do what I need to do.

I have a few Vagrant setups working now too, and added a pagure repo with some
instructions as well:

https://pagure.io/fedora-apps-vagrantfiles/tree/master

So far, I have ones for fedora-hubs, bodhi and a quick one for getting a modern_paste
test instance up and running. I also should note that I am not a sysadmin, so i might
be doing some of the steps in the provisioning a bit weird, so feel free to test these out
and submit a PR or three ;)

cheers,
ryanlerch


 


Pierre