There are two ways to get up and running with the Giles Ecosystem: using Docker or installing it directly on your infrastructure. We recommend to use Docker for evaluation and testing purposes, but to install all components directly on your machines in production.
...
Note |
---|
It is recommended to configure Tomcat to use UTF-8 as character encoding for URLs. To do that follow the instructions here. |
MySQL/PostgreSQL
Since version v0.5/v0.6, Giles and Nepomuk require a relational database as backend. Currently the components ship with drivers for MySQL and PostgreSQL. Please consult the respective documentations for installation instructions.
Digilib
Please consult the Digilib page for installation instructions.
...
- Unpack the war file (e.g. by changing its ending to ".zip" and unzipping it)
- Find the file
WEB-INF/classes/config.properties
and edit the following properties:giles_files_tmp_dir
: This should be an absolute path to the directory where you want Giles to stores its temporary files (files uploaded by users that haven't been processed yet).- If your Kafka server is not running on the same machine as Giles, or if it is running on a different port than the default port (9092), you have to change the property
kafka_hosts
to reflect this. Status colour Blue title since v0.5 db.driver
: the driver appropriate for you database (e.g.com.mysql.jdbc.Driver
for MySQL ororg.postgresql.Driver
for PostgreSQL, see this page for more drivers).Status colour Blue title since v0.5 db.url
: connection URL for the used database .Status colour Blue title since v0.5 db.username
: username to connect to database.Status colour Blue title since v0.5 db.password
: password to connect to database.Status colour Blue title since v0.5 hibernate.dialect
: the dialect used for your database (see this page for a list of dialects).Status colour Blue title since v0.6 zookeeper_host
: host name where Zookeeper is running (e.g.localhost
ormy.server.org
)Status colour Blue title since v0.6 zookeeper_port
: port on which Zookeeper is running (default is2181
)Status colour Blue title since v0.6
: enables or disables email notifications. Set toemail_enabled
true
if email notifications should be sent; otherwisefalse
.Status colour Blue title since v0.6 email_from
: email address notifications should be sent from.- All other properties can later be changed through the webapp itself.
Find the file
WEB-INF/spring/email-config.xml
and edit it as follows:Set the host property to your email host name by editing the
value
attribute:Code Block language xml <property name="host" value="your.email.host"/>
Set the port property to your email host port by editing the
port
attribute:Code Block language xml <property name="port" value="email.server.port"/>
Set the username property to the username to use to connect to your email server:
Code Block language xml <property name="username" value="username.for.emailserver"/>
Set the password property to the password to be used to connect to your email server:
Code Block language xml <property name="password" value="password.for.emailserver"/>
- Find the file
WEB-INF/classes/user.properties
and edit admin password:admin=adminPasswordBCrypted,ROLE_ADMIN,enabled
: the password is the first value after the equal sign (adminPasswordBCrypted). Password should be hashed using the bcrypt algorithm with strength 10.
- Find the file
WEB-INF/classes/META-INF/persistence.xml
and change it as follows:There are three lines that start with
<property name="javax.persistence.jdbc.url"
. In each line, replace/path/to/giles/dbfiles/folder
with the path to the folder that should store Giles' DB files. It should look something like this:Code Block language xml <property name="javax.persistence.jdbc.url" value="/path/to/giles/db/folder/users.odb"/>
Make sure to keep the file name at the end of each line.
Find the file
WEB-INF/spring/spring-security.xml
and change the following lines:Code Block language xml <beans:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" /> <beans:property name="url" value="jdbc:mysql://localhost:3306/giles" /> <beans:property name="username" value="" /> <beans:property name="password" value="" /> </beans:bean>
Change the values of username and password to the username of your DB user and its password. If you did not name the new DB
giles
, change theurl
property to reflect the database name (e.g. if you named the databasegilesdb
, then instead ofjdbc:mysql://localhost:3306/giles
, putjdbc:mysql://localhost:3306/gilesdb
).
If you are using PostgreSQL instead of MySLQ, make sure to replace the driver class name withorg.postgresql.Driver
.Now, generate a new war file from the unpacked and changed files and deploy it in your Tomcat.
Info If you are on a Unix-based operating system, you can do this for example by running the command
jar -cvf giles.war .
from inside the unpacked Giles folder.- Once deployed, Tomcat should be accessible at
http://your.server/giles
.
...
- Unpack the war file (e.g. by changing its ending to ".zip" and unzipping it)
- Find the file
WEB-INF/classes/config.properties
and edit the following properties:app_base_url
: The base URL of Nepomuk such as https://your.nepomuk.server/nepomuk.- If your Kafka server is not running on the same machine as Nepomuk, or if it is running on a different port than the default port (9092), you have to change the property
kafka_hosts
to reflect this. Status colour Blue title since v0.6 db.driver
: the driver appropriate for you database (e.g.com.mysql.jdbc.Driver
for MySQL ororg.postgresql.Driver
for PostgreSQL, see this page for more drivers).Status colour Blue title since v0.5 db.url
: connection URL for the used database .Status colour Blue title since v0.6 db.username
: username to connect to database.Status colour Blue title since v0.6 db.password
: password to connect to database.Status colour Blue title since v0.6 hibernate.dialect
: the dialect used for your database (see this page for a list of dialects).Status colour Blue title since v0.6 hibernate.show_sql
: if you want hibernate to print the SQL statements it runs, set this totrue
; otherwisefalse
.Status colour Blue title since v0.6 zookeeper_host
: host name where Zookeeper is running (e.g.localhost
ormy.server.org
)Status colour Blue title since v0.6 zookeeper_port
: port on which Zookeeper is running (default is2181
)
- Find the file
WEB-INF/classes/user.properties
and edit admin password:admin=adminPassword,ROLE_ADMIN,enabled
: the password is the first value after the equal sign (adminPassword). Password should be hashed using the bcrypt algorithm with strength 10.
Find the file
WEB-INF/spring/root-contextx.xml
and change the propertybaseDirectory
of following bean definitions:Code Block language xml <bean id="imageStorageManager" class="edu.asu.diging.gilesecosystem.nepomuk.core.files.impl.FileStorageManager"> <property name="baseDirectory" value="/path/to/image/parent/folder/" /> <property name="fileTypeFolder" value="images"></property> </bean> <bean id="pdfStorageManager" class="edu.asu.diging.gilesecosystem.nepomuk.core.files.impl.FileStorageManager"> <property name="baseDirectory" value="/path/to/files/parent/folder/" /> <property name="fileTypeFolder" value="pdfs"></property> </bean> <bean id="textStorageManager" class="edu.asu.diging.gilesecosystem.nepomuk.core.files.impl.FileStorageManager"> <property name="baseDirectory" value="/path/to/files/parent/folder/" /> <property name="fileTypeFolder" value="texts"></property> </bean> <bean id="otherStorageManager" class="edu.asu.diging.gilesecosystem.nepomuk.core.files.impl.FileStorageManager"> <property name="baseDirectory" value="/path/to/files/parent/folder/" /> <property name="fileTypeFolder" value="others"></property> </bean>
Each base directory needs to point to a folder to store images, pdfs, texts, or other files.
Now, generate a new war file from the unpacked and changed files and deploy it in your Tomcat.
Info If you are on a Unix-based operating system, you can do this for example by running the command
jar -cvf nepomuk.war .
from inside the unpacked Nepomuk folder.- Once deployed, Tomcat should be accessible at
http://your.server/nepomuk
.
...
- Unpack the war file (e.g. by changing its ending to ".zip" and unzipping it)
- Find the file
WEB-INF/classes/config.properties
and edit the following properties:cassiopeia_url
: The base URL of Cassiopeia such as https://your.cassiopeia.server/cassiopeia.- If your Kafka server is not running on the same machine as Cepheus, or if it is running on a different port than the default port (9092), you have to change the property
kafka_hosts
to reflect this. tesseract_bin_folder
: the folder of of the Tesseract executable. Default is/usr/bin
.tesseract_data_folder
: folder wheretessdata
is located. Default is/usr/share/tesseract/
.tesseract_create_hocr
: if you want Cassiopeia to create HOCR instead of plain text, set this property totrue
.
- Find the file
WEB-INF/classes/user.properties
and edit admin password:admin=AdminPassword,ROLE_ADMIN,enabled
: the password is the first value after the equal sign (AdminPassword
).
Find the file
WEB-INF/spring/root-contextx.xml
and change the propertybaseDirectory
of following bean definitions:Code Block language xml <bean id="fileStorageManager" class="edu.asu.diging.gilesecosystem.util.files.impl.FileStorageManager"> <property name="baseDirectory" value="/path/to/cassiopeia/folder/" /> <property name="fileTypeFolder" value="tmp"></property> </bean>
The base directory property needs to point to a folder where Cassiopeia will store temporary files.
Now, generate a new war file from the unpacked and changed files and deploy it in your Tomcat.
Info If you are on a Unix-based operating system, you can do this for example by running the command
jar -cvf cassiopeia.war .
from inside the unpacked Cassiopeia folder.- Once deployed, Tomcat should be accessible at
http://your.server/cassiopeia
.
Andromeda
Andromeda needs the following software to be installed:
...