You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/en/setup.md
+109-42
Original file line number
Diff line number
Diff line change
@@ -7,42 +7,120 @@ This documentation describes the process of bootstrapping the vocabulary server.
7
7
- Adapt configuration file properly and remove unmodified lines.
8
8
- Database credentials and database name.
9
9
- Base URL and port.
10
-
-**TODO***Install the `vocabulary-server.jar` and the `application.properties` configuration file both directly into a new folder (e. g. `/opt/digiverso/vocabulary/`)*
10
+
- Security token (this must also be configured identically in Goobi).
11
+
- Create a Systemd service to start the service automatically.
11
12
12
-
## Start as systemd service
13
-
-**TODO***Create a systemd service unit for the vocabulary server (The application should be able to correctly shutdown on SIGTERM)*
14
-
-**TODO***Admin documentation here*
15
-
- Run `java -jar vocabulary-server-VERSION.jar`.
16
-
- If startup succeeds, you will see a line like this after a few seconds:
17
-
```bash
18
-
Started VocabularyServerApplication in 4.244 seconds (process running for 4.581)
19
-
```
13
+
## Setting up Goobi Workflow to communicate with the vocabulary server
20
14
21
-
## Goobi Workflow Setup Communication
22
-
- Goobi Workflow uses the new vocabulary server since version `24.07`.
23
-
- Configure the `vocabularyServerHost` and `vocabularyServerPort` variables in `goobi_config.properties` according to your vocabulary server configuration.
15
+
- Goobi Workflow has been using the new vocabulary server since version `24.07`.
16
+
- Configure the variables `vocabularyServerHost`, `vocabularyServerPort` and `vocabularyServerToken` in the `goobi_config.properties` file according to the configuration of your vocabulary server.
24
17
- Restart Goobi Workflow for the changes to take effect.
25
-
- Navigate to `Administration` > `Vocabularies` to check if everything works. You should see a list of vocabularies if everything is okay (not right now, but after you have created some vocabularies or migrated the existing ones). You will see a red error message if something doesn't work.
26
-
27
-
## Initial Setup
28
-
- For proper operation, the vocabulary server needs some initial data.
29
-
- This data contains language specifications (if multi-language vocabularies are used) and field type definitions.
30
-
- You can use the following script that installs some sample languages and field types.
31
-
- Download the [Initial Data Script](https://jenkins.intranda.com/job/intranda/job/vocabulary-server/job/develop/lastSuccessfulBuild/artifact/install/default_setup.sh).
32
-
- Change the `HOST` variable at the top according to the vocabulary server configuration, leave the `/api/v1` suffix unchanged.
33
-
- Run the script.
34
-
35
-
## Security
36
-
- You can setup Apache url restrictions in order to secure the vocabulary server from unauthorized access.
37
-
-**TODO***Admins, please find out what and how to do it in detail.*
38
-
39
-
## Installation Test
40
-
- For all commands, change host and port accordingly.
41
-
- After the initial setup, check that types were created successfully:
18
+
- Navigate to `Administration` > `Vocabularies` to check that everything is working. You should see a list of vocabularies if everything is OK (not now, but after you have created some vocabularies or migrated the existing ones). If something is not working, you will see a red error message.
19
+
20
+
21
+
## Initial setup
22
+
23
+
- For proper operation, the vocabulary server requires some initial data.
24
+
- This data contains language information (if multilingual vocabularies are used) and field type definitions.
25
+
- You can use the following script, which installs some sample languages and field types.
26
+
- Download the [Initial Data Script](https://github.com/intranda/goobi-vocabulary-server/raw/develop/install/default_setup.sh).
27
+
- Change the variables `HOST` and `TOKEN` at the beginning according to the configuration of the vocabulary server, leave the suffix `/api/v1` unchanged.
28
+
- Execute the script.
29
+
30
+
## Installation script
31
+
The vocabulary server requires Java 17, the systemd service assumes that Java 17 is the system default.
32
+
33
+
For the above three points, under Ubuntu:
34
+
``bash
35
+
export VOC_PORT=8081
36
+
export VOC_TOKEN=$(</dev/urandom tr -dc '[:alnum:]' | head -c17)
37
+
export VOC_PATH=/opt/digiverso/vocabulary
38
+
export VOC_USER=vocabulary
39
+
export VOC_SQL_USER=${VOC_USER}
40
+
export VOC_SQL_DB=${VOC_USER}
41
+
export PW_SQL_VOC=$(</dev/urandom tr -dc '[:alnum:]' | head -c17)
42
+
43
+
# create install folder
44
+
sudo mkdir ${VOC_PATH}
45
+
# download and link vocabulary server application file
46
+
wget https://github.com/intranda/goobi-vocabulary-server/releases/latest/download/vocabulary-server-core.jar -O - | sudo tee ${VOC_PATH}/vocabulary-server-core.jar >/dev/null
0 commit comments