-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment (for testing) failure #285
Comments
In case it matters, the first time I ran vagrant up I got a message saying I needed a new version of virtualbox. Installed that. Second time it complained ansible wasn't installed. Third time "vagrant up" succeeded, with message:
|
Even though it said box was provisioned, I tried running Output:
|
I don't really know vagrant
The tools/site.yml file has an ansible configuration, that has the
relevant "gem install kwalify". Guess vagrant doesn't use this?
Why don't we use docker here?
(ducks)
|
Thanks for trying this Alan. I don't think anybody else has tried the Vagrant stuff, and I haven't run it in a while either, so there's bound to be some problems. The travis gem is only used to see if the build is green before updating. You don't need it for a local test, so you can remove those lines from the I kind of like Ansible, and I used it to deploy to the curent PURL server (Debian on EC2). It's nice to use the same deployment tool aimed at the local Vagrant machine, and I made it work in Travis after jumping through some hoops. But I've had some trouble with Vagran file sharing in the past, and using it for Travis tests is slow. I've had nothing but grief from Docker, and I won't be investing any more time in it until it is much more mature. For something as simple as this, it might work fine, but I leave that task to another brave soul. |
Removing the travis install lets |
On 10 Jan 2017, at 13:27, James A. Overton wrote:
Thanks for trying this Alan. I don't think anybody else has tried the
Vagrant stuff, and I haven't run it in a while either, so there's
bound to be some problems.
The travis gem is only used to see if the build is green before
updating. You don't need it for a local test, so you can remove those
lines from the `site.yml` and see if the rest works. That gem has
given me trouble in the past, and it would be nice to avoid using it
entirely.
I don't love it but we should have some form of checking the yaml tags
(beyond yaml syntax checking) in travis?
There is a python implementation that accepts the same schema files.
I'm not wedded to kwalify as the schema language at all, but it's what
we have at the moment...
I kind of like Ansible, and I used it to deploy to the curent PURL
server (Debian on EC2). It's nice to use the same deployment tool
aimed at the local Vagrant machine, and I made it work in Travis after
jumping through some hoops. But I've had some trouble with Vagran file
sharing in the past, and using it for Travis tests is slow.
I've had nothing but grief from Docker, and I won't be investing any
more time in it until it is *much* more mature. For something as
simple as this, it might work fine, but I leave that task to another
brave soul.
ok!
|
In the below, is the first warning/stacktrace something I should worry about?
|
Yes. |
@cmungall I'm not sure what you mean. The Travis tests run kwalify, but they also install Apache (using Ansible), run Apache with the PURL configuration, and check a large portion of the redirects against their targets. The Travis gem uses their REST API to tell Make whether master is green, so Make can pull and update. If we trust that master is always green, we don't need the Travis gem. But last week one of our maintainers commited directly to master, so I'm not sure it's safe. |
Ok, It's working for me. Thanks! Doc suggestions (while fresh in my mind)
Other suggestions:
Thanks again. I found and fixed bugs it my iao.yml, which I was rearranging because it was a mess. |
just noticed shared folder. Nice. so nix: - Set up so that inside the machine there's a git remote which is the outside machine's cloned repo (the one you're running vagrant from). |
BTW, I committed changes to iao.yml, but they haven't shown up in the last day. Is there something that needs to be poked to refresh the server? |
Allow latest version of the gem.
Only require travis gem on production, see #285
Hi @alanruttenberg. PRs #289, #291, and #292 should address all of your suggestions except the one about an SSH key for Vagrant. This shouldn't be necessary because the files on the host machines are synced into the VM. The new docs make this more clear. Please take a look at #292. |
Improve development documentation, fixes #285
On OSX Yosemite:
so far so good.
Then, (in box)
which results in:
The text was updated successfully, but these errors were encountered: