Skip to content
Snippets Groups Projects
Commit 13186048 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

created separate subdir for add_dnx_mapping, adapted paths to new Rosetta WebUI structure

parent d841bf2b
No related branches found
No related tags found
No related merge requests found
How to build checkit-tiff variants for Redhat system used by Rosetta How to automatically add Mappings between extracted Technical Metadata and DNX Significant Properties in Rosetta
==================================================================== ================================================================================================================
:lang: en :lang: en
:encoding: utf-8 :encoding: utf-8
:author: Andreas Romeyke :author: Jörg Sachse
== Prerequisites == Prerequisites
* you need 'docker' * Desktop environment
* If using Debian buster or higher, you must(!) add "vsyscall=emulate" option * Perl
to the Linux kernel boot option, because CentOS 6.xx triggers syscalls in an * Perl module (download at https://metacpan.org/pod/Selenium::Remote::Driver)
outdated way. ** install using "cpanm Selenium::Remote::Driver"
* Chrome browser (downlaod at https://www.google.com/intl/de_de/chrome/)
* Selenium browser driver driver for the Chrome version that is installed on the system (download at https://sites.google.com/a/chromium.org/chromedriver/, via https://www.seleniumhq.org/download/)
== How to build == How to build
# If something was built, delete all containers for specific image: * You don't have to do anything, just run the script.
docker ps -a | awk '{ print $1,$2 }' | grep checkit-tiff | awk '{print $1 }' | xargs -I {} docker rm {}
# build stuff == How to run
docker build -t checkit-tiff --rm=true ./
== find out which image
docker images
lists:
REPOSITORY TAG IMAGE ID CREATED SIZE
checkit-tiff latest acc13d4a83d9 3 minutes ago 827 MB # <==== that's it!
<none> <none> e3be26e603f0 5 minutes ago 824 MB
centos 6.10 0cd976dc0a98 10 months ago 195 MB
== How to copy already built binaries
id=$(docker create checkit-tiff)
docker cp $id:/tmp/checkit_tiff_current.tgz ./
docker cp $id:/tmp/checkit_tiff_upcoming.tgz ./
docker rm -v $id
* general invocation
** $# perl -I path/to/perl/modules .add_dnx_mappings.pl "Rosetta-Host.Domain.tld" "Rosetta-User" "Rosetta-Password" "Institution-Name" ":Portnumber"
* example invocation:
** $# perl -I ~/perl5/lib/perl5 ./add_dnx_mappings.pl "sdvrosetta-test.slub-dresden.de" "su-user" "Sw0rdF!$h" "SLUB" ":1801"
...@@ -108,8 +108,9 @@ sub logout { ...@@ -108,8 +108,9 @@ sub logout {
sub _change_to_xxx_format_library { sub _change_to_xxx_format_library {
$driver->get("http://$host${ui_port}/mng/action/menus.do?first_time_key=com.exlibris.dps.wrk.general.menu"); $driver->get("http://$host${ui_port}/mng/action/menus.do?first_time_key=com.exlibris.dps.wrk.general.menu");
$driver->find_element("Quick Launch", "link")->click; #$driver->find_element("Quick Launch", "link")->click;
$driver->find_element("Administer the system", "link")->click; # $driver->find_element("Administer the system", "link")->click;
$driver->find_element("//a[\@title='Administer the system']", "xpath")->click;
#~ $driver->find_element("General", "link")->click; # Fix for Rosetta 5.5+ #~ $driver->find_element("General", "link")->click; # Fix for Rosetta 5.5+
$driver->find_element("General Parameters", "link")->click; $driver->find_element("General Parameters", "link")->click;
$driver->find_element("undefined_button", "id")->click; $driver->find_element("undefined_button", "id")->click;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment