[Koha-devel] Kohadevbox for testing Packages+Plack

Jonathan Druart jonathan.druart at bugs.koha-community.org
Wed Sep 23 12:01:53 CEST 2015


[TODO LATER]
It would be great to fill ~/.my.cnf with
[client]
user=$db_user
password=$db_pwd
host=$db_host

[mysql]
default-character-set=utf8

2015-09-23 10:57 GMT+01:00 Jonathan Druart
<jonathan.druart at bugs.koha-community.org>:
> It works perfectly with a Jessie host.
> Note that I am using vagrant 1.6.5 and ansible 1.7.2.
>
> Some questions:
> 1/ > $ export SYNC_REPO=/home/katrina/kohaclone
> Why this variable is not in the vars/user.yml file?
> The process explodes if not defined:
> TASK: [kohadevbox | Gitify the Koha instance] *********************************
> failed: [jessie] => {"changed": true, "cmd": "./koha-gitify kohadev
> /home/vagrant/kohaclone", "delta": "0:00:00.045243", "end":
> "2015-09-23 09:12:58.035161", "rc": 2, "start": "2015-09-23
> 09:12:57.989918"}
> stderr: ERROR: git checkout not found at (/home/vagrant/kohaclone)
>
>
> 2/ Can we imagine several instances running? How can we access them separately?
>
> 3/ Can we imagine a way to automatically insert a specific DB (from
> the contrib/sandboxes repo for instance)?
>
> Cheers,
> Jonathan
>
> 2015-09-21 15:22 GMT+01:00 Tomas Cohen Arazi <tomascohen at gmail.com>:
>> Hi everyone, I hope you had a great weekend :-D
>>
>> We have pushed a new branch to the kohadevbox repository. The branch is
>> called 'ansible' and relies on that tool (Ansible) to load a full packages
>> environment, suitable for testing Plack on packages. I already use it for my
>> RM duties, daily.
>>
>> To try/use it, you need to:
>>
>> (1) Install the latest vagrant:
>>   https://www.vagrantup.com/downloads.html
>>
>> (2) Install the latest ansible:
>>
>> http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
>>
>> (3) Install nfs-kernel-server (for re-using your host machine cloned repo)
>>   $ sudo apt-get install nfs-kernel-server
>>
>> (4) Clone the kohadevbox repo https://github.com/digibib/kohadevbox.git
>>
>> (5) Checkout the 'ansible' branch.
>>
>> (6) Dive into the directory, uncomment the lines you would like to tweak in
>> vars/user.yml (email, name, bz configuration, etc)
>>
>> (7) Set an env variable pointing to your local koha clone (for example)
>>   $ export SYNC_REPO=/home/katrina/kohaclone
>>
>> (8) Launch kohadevbox for the desired distribution:
>>   $ vagrant up trusty
>> or
>>   $ vagrant up wheezy
>> or
>>   $ vagrant up jessie
>>
>> Once you have your vagrant environment up and running, you will have access
>> to Koha like this:
>> - OPAC: http://localhost:8080
>> - Staff: http://localhost:8081
>>
>> After this, you can enable Plack from within the VM by running:
>>
>>  $ vagrant ssh <os> # to get into
>>  $ sudo -s # gain root access
>>  $ koha-plack --enable kohadev
>>  $ koha-plack --start kohadev
>>  $ service apache2 restart
>>
>> Once you have it running and figure how easy is to destroy your environment
>> and re-create it, you will really love this (+10000 to Magnus!).
>>
>> So, this is a pledge to all of you, to use it so we properly test Plack on
>> packages for the next release.
>>
>> Thanks in advance!
>>
>> --
>> Tomás Cohen Arazi
>> Theke Solutions (http://theke.io)
>> ✆ +54 9351 3513384
>> GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
>>
>> _______________________________________________
>> Koha-devel mailing list
>> Koha-devel at lists.koha-community.org
>> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>> website : http://www.koha-community.org/
>> git : http://git.koha-community.org/
>> bugs : http://bugs.koha-community.org/


More information about the Koha-devel mailing list