<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-23 6:57 GMT-03:00 Jonathan Druart <span dir="ltr"><<a href="mailto:jonathan.druart@bugs.koha-community.org" target="_blank">jonathan.druart@bugs.koha-community.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It works perfectly with a Jessie host.<br>
Note that I am using vagrant 1.6.5 and ansible 1.7.2.<br>
<br>
Some questions:<br>
1/ > $ export SYNC_REPO=/home/katrina/kohaclone<br>
Why this variable is not in the vars/user.yml file?<br></blockquote><div><br></div><div>That's because it is used by vagrant, to mount your local Koha clone as an NFS filesystem (we could use Virtualbox's folder sharing driver, but it is painfully slow). We should extend this to more options (LXC containers?).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The process explodes if not defined:<br>
TASK: [kohadevbox | Gitify the Koha instance] *********************************<br>
failed: [jessie] => {"changed": true, "cmd": "./koha-gitify kohadev<br>
/home/vagrant/kohaclone", "delta": "0:00:00.045243", "end":<br>
"2015-09-23 09:12:58.035161", "rc": 2, "start": "2015-09-23<br>
09:12:57.989918"}<br>
stderr: ERROR: git checkout not found at (/home/vagrant/kohaclone)<br></blockquote><div><br></div><div>Yeah, that's on my TODO. Basically, we need to use that env var to control wether to clone from the ansible script or not. Currently, it is assumed that the clone exists.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2/ Can we imagine several instances running? How can we access them separately?<br></blockquote><div><br></div><div>We should try. The main issue with the current Vagrantfile would be the fixed IP (needed for the NFS thing only). Maybe we could just define a different one for each vm definition (jessie, wheezy, etc). The port mapping should be handled that way too, to avoid collision.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">3/ Can we imagine a way to automatically insert a specific DB (from<br>
the contrib/sandboxes repo for instance)?<br></blockquote><div><br></div><div>Magnus' branch currently lets you specify an SQL file to be loaded. That's on the TODO list too, the same for another feature Magnus implemented: controlling wether to load the shipped default data, or let the user go through the webinstaller.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cheers,<br>
Jonathan<br></blockquote><div><br></div><div>Thanks for the feedback. I'm sending a pull request to Chris Hall for koha-gitify to take care of the new plack.psgi file paths.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
2015-09-21 15:22 GMT+01:00 Tomas Cohen Arazi <<a href="mailto:tomascohen@gmail.com">tomascohen@gmail.com</a>>:<br>
> Hi everyone, I hope you had a great weekend :-D<br>
><br>
> We have pushed a new branch to the kohadevbox repository. The branch is<br>
> called 'ansible' and relies on that tool (Ansible) to load a full packages<br>
> environment, suitable for testing Plack on packages. I already use it for my<br>
> RM duties, daily.<br>
><br>
> To try/use it, you need to:<br>
><br>
> (1) Install the latest vagrant:<br>
>   <a href="https://www.vagrantup.com/downloads.html" rel="noreferrer" target="_blank">https://www.vagrantup.com/downloads.html</a><br>
><br>
> (2) Install the latest ansible:<br>
><br>
> <a href="http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu" rel="noreferrer" target="_blank">http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu</a><br>
><br>
> (3) Install nfs-kernel-server (for re-using your host machine cloned repo)<br>
>   $ sudo apt-get install nfs-kernel-server<br>
><br>
> (4) Clone the kohadevbox repo <a href="https://github.com/digibib/kohadevbox.git" rel="noreferrer" target="_blank">https://github.com/digibib/kohadevbox.git</a><br>
><br>
> (5) Checkout the 'ansible' branch.<br>
><br>
> (6) Dive into the directory, uncomment the lines you would like to tweak in<br>
> vars/user.yml (email, name, bz configuration, etc)<br>
><br>
> (7) Set an env variable pointing to your local koha clone (for example)<br>
>   $ export SYNC_REPO=/home/katrina/kohaclone<br>
><br>
> (8) Launch kohadevbox for the desired distribution:<br>
>   $ vagrant up trusty<br>
> or<br>
>   $ vagrant up wheezy<br>
> or<br>
>   $ vagrant up jessie<br>
><br>
> Once you have your vagrant environment up and running, you will have access<br>
> to Koha like this:<br>
> - OPAC: <a href="http://localhost:8080" rel="noreferrer" target="_blank">http://localhost:8080</a><br>
> - Staff: <a href="http://localhost:8081" rel="noreferrer" target="_blank">http://localhost:8081</a><br>
><br>
> After this, you can enable Plack from within the VM by running:<br>
><br>
>  $ vagrant ssh <os> # to get into<br>
>  $ sudo -s # gain root access<br>
>  $ koha-plack --enable kohadev<br>
>  $ koha-plack --start kohadev<br>
>  $ service apache2 restart<br>
><br>
> Once you have it running and figure how easy is to destroy your environment<br>
> and re-create it, you will really love this (+10000 to Magnus!).<br>
><br>
> So, this is a pledge to all of you, to use it so we properly test Plack on<br>
> packages for the next release.<br>
><br>
> Thanks in advance!<br>
><br>
> --<br>
> Tomás Cohen Arazi<br>
> Theke Solutions (<a href="http://theke.io" rel="noreferrer" target="_blank">http://theke.io</a>)<br>
> ✆ +54 9351 3513384<br>
> GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Koha-devel mailing list<br>
> <a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
> <a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
> website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
> git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
> bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Tomás Cohen Arazi</div><div style="font-size:12.8px">Theke Solutions (<a href="http://theke.io/" target="_blank">http://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F</div></div></div>
</div></div>