Make first vagrant up work for a new contributor. #81
Comments
vagrant up work for a new contributor.
vagrant up work for a new contributor. |
Related; I’m to build a Salt Stack recipe to deploy FxA. My environment is using Ubuntu 14.04, and Salt Stack. I’m open to make ways for you to integrate it in your own environment. |
|
Here’s a patch of what I changed on this repo. UPDATED Patch: Look at the line |
|
A lot of |
|
As I said in the issue. Its an attempt to setup from an external person who doesn’t have access to Vagrant VM image I started from an empty VM, no databases, nothing. Problem is that Ansible scripts assumes that it will be successful even from a vanilla VM and stops ANY install steps, even non dependent ones unless I make force the ignore. Its simply incomplete setup and i’m hopeful to make it work. I’m still compiling all the steps to make it work. According to I’ll share my rough notes once i’m done. |
|
Here’s where I am now. |
|
I just updated the Procedure in this gist. Its not yet fully running, but I see progress. |
vagrant up work for a new contributor.
vagrant up work for a new contributor. |
To answer your question @vladikoff the steps assumes in its current sequence that everything services along the way successfully starts. Unfortunately in some cases, it doesn’t add dependencies as if it was from a new VM. Its a common problem when we work on deployment scripts. Sometimes we forget to trash the previous VM and try if it still works. |
|
I'm going through and cleaning up some of our old bugs. @renoirb do you still have interest in this? IIUC none of the FxA core devs are using the vagrant stuff in this repo any longer. |
|
I'm going to close this out since the vagrant stuff in that repo is essentially unmaintaned. We may revisit with e.g. a docker based flow in the future. |
How to resolve
Either
OR
Building the VM:
Related notes
Initial procedure
Note Progress is described in the comment thread.
This procedure assumes one doesn’t have access to
dcoates/fedora20config.vm.boxVagrant box.Environment:
Steps
Install Ansible
Adjust
Vagrantfilewith:Boot the VM for the first time
First time it fails, its OK.
Fun in the VM the following:
Inside the VM
Halt the VM, restart the process
Back on the host;
Add what’s missing inside the VM
Inside the VM, as root;
Get the code
On the host;
Wait.
It breaks at
fxa-auth-server, see npm-debug.logBreaks halfway
Here is how
/datalooks likeDelete an try again
After reading the npm-debug.log. It mentionned to delete and try again.
Inside the VM;
rm -rf /root/tmp/npm-
Trying again from the host;
Got a different error message. It talked about missing
gmp.h.Another
make update-codeattemptIt worked! /o/
make updateThe text was updated successfully, but these errors were encountered: