Commit 65e716c3 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Merge branch 'v4.x-master' into 'v5.x-master'

Remove deb installation dependencies on mongo and elasticsearch as they could...

See merge request !59
parents 79118d67 b92718b4
Pipeline #30758 passed with stage
in 1 minute and 38 seconds
Installation
## Installation
wget -O - https://minfba.de.dariah.eu/rep/key/A89C168D.gpg.key | sudo apt-key add -
### Prerequisites
The Generic Search is a Java application currently has the following requirements:
* Java 11 (JDK for compiling grammars in the [GTF](https://gitlab.rz.uni-bamberg.de/gtf/gtf-framework/gtf))
* Elasticsearch 7
* MongoDB
Add main or snapshot repository
### APT package installation
echo "deb https://minfba.de.dariah.eu/rep stable main" | sudo tee /etc/apt/sources.list.d/minfba_dariah_main.list
#### 1. Add the repository key
````
wget -O - https://minfba.de.dariah.eu/minfba_public.asc | sudo apt-key add -
````
echo "deb https://minfba.de.dariah.eu/rep testing snapshot" | sudo tee /etc/apt/sources.list.d/minfba_dariah_snapshot.list
\ No newline at end of file
#### 2. Add the main and/or testing repository source and update
Main production packages:
````
echo "deb [arch=all] https://minfba.de.dariah.eu/nexus/repository/minfba-apt-releases/ any main" \
| sudo tee /etc/apt/sources.list.d/minfba_repository.list
````
Testing packages:
````
echo "deb [arch=all] https://minfba.de.dariah.eu/nexus/repository/minfba-apt-testing/ any main" \
| sudo tee /etc/apt/sources.list.d/minfba_repository.list
````
#### 3. Install the service
Update respository sources
````
sudo apt-get update
````
Install the package
````
sudo apt-get install dariah-search-ui
````
Install as service and enable
````
sudo systemctl start dariah-search-ui
sudo systemctl enable dariah-search-ui
````
For rare cases that require the installation of two parallel instances of the service, a alternative version is built and deployed as `dariah-search-ui-alt`, which can be installed without conflicting with the primary `dariah-search-ui` installation
### Java package installation
Release and snapshot packages can be downloaded from the Maven package repositories.
* For **release** packages see: https://minfba.de.dariah.eu/nexus/#browse/browse:minfba-releases:eu%2Fdariah%2Fde%2Fminfba%2Fsearch-ui
* For **snapshot** packages see: https://minfba.de.dariah.eu/nexus/#browse/browse:minfba-snapshots:eu%2Fdariah%2Fde%2Fminfba%2Fsearch-ui
......@@ -9,7 +9,7 @@ allprojects {
apply plugin: 'eclipse'
group = 'eu.dariah.de.minfba'
version = '4.3.22-SNAPSHOT'
version = '4.3.22-RELEASE'
repositories {
mavenLocal()
......
......@@ -95,10 +95,7 @@ task alternativeDeb(type: Deb) {
tasks.withType(Deb) {
dependsOn(build)
requires('default-jdk').or('default-jdk-headless')
requires('mongodb').or('mongodb-org')
requires('elasticsearch')
os = LINUX
arch = 'all'
......@@ -152,4 +149,4 @@ task publishDebPackages {
}
}
publish.finalizedBy publishDebPackages
\ No newline at end of file
publish.finalizedBy publishDebPackages
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment