Line | |
---|
1 | Tipple-bridge is a Gradle based project revolving connecting the databases
|
---|
2 | of Tipple and Greenstone.
|
---|
3 |
|
---|
4 | To compile:
|
---|
5 |
|
---|
6 | ./gradlew compileJava
|
---|
7 |
|
---|
8 | To produce a self-contained jar file:
|
---|
9 |
|
---|
10 | ./gradlew jar
|
---|
11 |
|
---|
12 | To run and see usage:
|
---|
13 |
|
---|
14 | java -jar build/libs/Tipple-Bridge-1.0-SNAPSHOT.jar --help
|
---|
15 |
|
---|
16 | To progress any further, you need to setup a MariaDb database
|
---|
17 | and populate is Tipple content.
|
---|
18 |
|
---|
19 | Instructions on how to do that, can be found:
|
---|
20 |
|
---|
21 | https://docs.google.com/document/d/1byKTzy30Yv8dLU-MyVwwnfz5eHdL1ItjBX9XpcV8Ucw/edit#heading=h.yj2lo2ttrpa
|
---|
22 |
|
---|
23 | With this all done, to start the server:
|
---|
24 |
|
---|
25 | mariadbd-safe --port=3306 --datadir=$PWD/data --socket=/tmp/mysqld-$USER.sock
|
---|
26 |
|
---|
27 | Assuming you have followed those instructions, have a database called 'koicarp_test',
|
---|
28 | and a database username called 'foo', then an example use of it is as follows:
|
---|
29 |
|
---|
30 | java -jar build/libs/Tipple-Bridge-1.0-SNAPSHOT.jar \
|
---|
31 | --user=foo -p --projectID=3
|
---|
32 |
|
---|
33 | You will be challenged for the password you set when working through the MariaDB setup (e.g.,
|
---|
34 | 'changeme').
|
---|
35 |
|
---|
36 |
|
---|
37 | Trouble-shooting
|
---|
38 | ================
|
---|
39 |
|
---|
40 | If you are experiencing issues with the Java program trying to connect to the database,
|
---|
41 | see if you can connect to the database server form the command-line with:
|
---|
42 |
|
---|
43 | mariadb --host=localhost --port=3306 --user=$USER --socket=/tmp/mysqld-$USER.sock koicarp_test
|
---|
44 |
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.