Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Vagrant VM for platform (dev) #46

Open
eddiejaoude opened this issue Oct 5, 2016 · 7 comments
Open

Vagrant VM for platform (dev) #46

eddiejaoude opened this issue Oct 5, 2016 · 7 comments

Comments

@eddiejaoude
Copy link
Contributor

eddiejaoude commented Oct 5, 2016

  • Vagrant
  • Ansible
    • Ruby - app setup dependent on John -test on Ruby during Session 5 on 19.10.16
    • PHP - app setup dependent on Momo
    • Postgres
@chrisyeoward
Copy link

So I've spent a fair few hours trying to get this to work, and keep getting stuck on installing everything needed for the ruby app. I'll push what work I've done, but to summarise it:

  • Eddie created an ansible provisioning file for the vagrant box that set up python, php, docker, mysql, postgres, among other things.
  • I couldn't quite figure out how to get ruby running using the ansible playbook and...
  • The build was taking aaaaaaaaaages (20/30 mins), installing docker, mysql and postgres. IMO this was a bit too heavyweight for what we needed so i decided to slim it down and just do a provision using shell scripts direct from the vagrant file
  • I got python, php, postgres, ruby and rvm installed on the box, however rails isn't working. Doens't seem to recognise it as a terminal command when trying to create the DB.

As it isn't critical to the delivery the project, I'm going to leave it and focus my efforts on the front end. Could possibly be helpful if someone else fancies taking a look. It's pretty much just the rails app that's causing the issues!

@eddiejaoude
Copy link
Contributor Author

@cy0023 the shell script might be initially faster than a build tool like ansible on a new VM, but if re-provisioned it will be slower.

Its seems like a common issue on both situations. Has anyone else got the rails app running? Might have to pair with a Rails developer to debug.

@aspiers
Copy link
Member

aspiers commented Nov 17, 2016

So I'm a bit confused where we are with this, since we have both

I'm definitely in favour of getting a Vagrant environment working which automatically sets everything up, ideally without unnecessarily chucking away any good work which was put into both of the above approaches. Bonus points for wrapping each individual service in a Dockerized microservice, but I agree that's low priority for now. I could try to fix the Ruby issue with #51 but first need to understand which of the two approaches we should be targetting; can we merge them into one?

@aspiers aspiers self-assigned this Nov 17, 2016
@eddiejaoude
Copy link
Contributor Author

So I'm a bit confused where we are with this, since we have both

Me too, I wasn't aware of the other branch.

I'm definitely in favour of getting a Vagrant environment working which automatically sets everything up, ideally without unnecessarily chucking away any good work

Yep 👍

Suggestion

It looks like the mark/vagrant branch focuses on setting up javascript. Where PR #51 is looking at the platform as a whole, to contain all dependent services (e.g. python, ruby, php, postgres etc). I think they could be merged.

Next Step

As #51 contains the majority of the platform, I would suggest getting Ruby project working on there & bringing the javascript specific work in - also I have ansible scripts from another project for node & npm, so this should be straight forward & that way we avoid custom shell scripts. The Ruby project is still the blocker on PR #51, @JohnSmall is doing the Ruby part and will be able to help.

@zoodor
Copy link
Contributor

zoodor commented Nov 17, 2016

Sounds good to me

On 17 Nov 2016 07:45, "Eddie Jaoude" [email protected] wrote:

So I'm a bit confused where we are with this, since we have both

Me too, I wasn't aware of the other branch.

I'm definitely in favour of getting a Vagrant environment working which
automatically sets everything up, ideally without unnecessarily chucking
away any good work

Yep 👍
Suggestion

It looks like the mark/vagrant branch
https://github.com/HackBrexit/MinistersUnderTheInfluence/compare/mark/vagrant
focuses on setting up javascript. Where PR #51
#51 is
looking at the platform as a whole, to contain all dependent services (e.g.
python, ruby, php, postgres etc)
. I think they could be merged.
Next Step

As #51 #51
contains the majority of the platform, I would suggest getting Ruby
project working on there & bringing the javascript specific work in -
also I have ansible scripts from another project for node & npm, so
this should be straight forward & that way we avoid custom shell
scripts. The Ruby project is still the blocker on PR #51
#51,
@JohnSmall https://github.com/JohnSmall is doing the Ruby part and
will be able to help.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgQQv9F4y4uPEglNsiyW--ZgiWtBkPpks5q_AYAgaJpZM4KPMXM
.

@charlottebrf
Copy link
Member

@aspiers can I close this?

@aspiers
Copy link
Member

aspiers commented Jan 15, 2017

@charlottebrf No this is still very much WIP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants