
Hi there, we would like to have docker images of OTRS with a working ticket web service for integration testing the interface between OTRS and OpenNMS Whilst we can build dockerfiles to spin up agents/containers for mariadb and OTRS, we can't easily script the final web installer and webservice import if we need to use the web installer. Is there a way that we can run these from the command line rather than the web browser? This would really help with integration testing. We'd like to know every time the OpenNMS/OTRS integration breaks without needing to wait for a user of OpenNMS and OTRS together to tell us. Thanks in advance ... Jonathan.

Hi Jonathan!
You don't need to use the web installer, per se.
You can create a small script that would copy Kernel/Config.pm.dist to
Kernel/Config.pm and sets a few variables such as database configuration,
and you can create the database tables by running the scripts in
scripts/database in order : schemal, initial_insert, post.
After that you can create the web services by running bin/otrs.Console.pl
Admin::WebService::Add
I hope this helps!
--
Michiel
On Fri, Aug 26, 2016 at 6:07 PM, Jonathan Sartin
Hi there,
we would like to have docker images of OTRS with a working ticket web service for integration testing the interface between OTRS and OpenNMS Whilst we can build dockerfiles to spin up agents/containers for mariadb and OTRS, we can't easily script the final web installer and webservice import if we need to use the web installer. Is there a way that we can run these from the command line rather than the web browser?
This would really help with integration testing. We'd like to know every time the OpenNMS/OTRS integration breaks without needing to wait for a user of OpenNMS and OTRS together to tell us.
Thanks in advance ... Jonathan.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

Michiel Beijen

Hi, On 31.08.2016 21:43, Michael Richardson wrote:
Michiel Beijen
wrote: > You don't need to use the web installer, per se. > You can create a small script that would copy Kernel/Config.pm.dist to > Kernel/Config.pm and sets a few variables such as database configuration, and > you can create the database tables by running the scripts in scripts/database > in order : schemal, initial_insert, post. Exactly, we deploy using Capistrano, and we deploy a Config.pm.
There are a huge number of other annoyances where running state in OTRS is confused with code. The settings file system is an accute example.
It's more of shortcut and an optimization than a confusion. You can define all your settings in XML files, then you just need to run the appropriate console command to compile it to .pm files so that the XML doesn't have to be parsed for each loading of the config. Cheers, Moritz

Hi Michiel,
Yes, that does help, thanks. I'll try it out and let you know how it goes.
Have a great weekend!
... Jonathan
On 26 Aug 2016 17:14, Michiel Beijen

Hi Jonathan, you can have a look at the .travis.yml in the OTRS codebase for some inspiration. Best regards, Martin Gruner Team Lead R&D OTRS AG Bahnhofplatz 1a 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel Mobile Kommunikation und transparente Prozesse - Mit der OTRS Business Solution™ Managed 5 schnell und ohne eigene IT-Ressourcen starten - Jetzt neue Features entdecken und bestellen https://www.otrs.com/neu-in-otrs-business-solution-5-mobile-kommunikation-tr...
Am 26.08.2016 um 18:07 schrieb Jonathan Sartin
: Hi there,
we would like to have docker images of OTRS with a working ticket web service for integration testing the interface between OTRS and OpenNMS Whilst we can build dockerfiles to spin up agents/containers for mariadb and OTRS, we can't easily script the final web installer and webservice import if we need to use the web installer. Is there a way that we can run these from the command line rather than the web browser?
This would really help with integration testing. We'd like to know every time the OpenNMS/OTRS integration breaks without needing to wait for a user of OpenNMS and OTRS together to tell us.
Thanks in advance ... Jonathan.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

Many thanks to everyone who replied - both on and off list ;-) I'll let you all know how I get on. Cheers ... Jonathan.

On 30/08/16 10:09, Jonathan Sartin wrote:
Many thanks to everyone who replied - both on and off list ;-)
I'll let you all know how I get on. So I did manage to get what I needed from this. The docker-compose.yml and other bits and pieces are up on GitHub: https://github.com/blackpoplar/docker-otrs-integration
Thanks again ... Jonathan.
participants (6)
-
Jonathan Sartin
-
jonathan@opennms.org
-
Martin Gruner
-
Michael Richardson
-
Michiel Beijen
-
Moritz Lenz