-
Notifications
You must be signed in to change notification settings - Fork 2
/
set-test-env.sh.example
58 lines (45 loc) · 2.2 KB
/
set-test-env.sh.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export TEST=true
export NLB_API_URL=https://api.dev.nlb.no/v1
export HOST=0.0.0.0
export PORT=3875
export MAIL_SERVER=""
export MAIL_PORT="25"
export MAIL_USERNAME=""
export MAIL_PASSWORD=""
export MAIL_FORMATKLAR=
export MAIL_FILESIZE=
export MAIL_ABKLAR=
export ALLOWED_EMAIL_ADDRESSES_IN_TEST= # comma separated list of e-mails
export BOOK_ARCHIVE_DIRS="master=$DIR/target/system/prodsys-archive share=$DIR/target/system/prodsys-daisy202 distribution=$DIR/target/system/prodsys-distribution"
export TRIGGER_DIR="$DIR/target/system/prodsys-trigger"
export REPORTS_DIR="$DIR/target/system/prodsys-rapporter"
if [ -f "$HOME/Desktop/produksjonssystem.yaml" ]; then
export CONFIG_FILE="$HOME/Desktop/produksjonssystem.yaml"
else
export CONFIG_FILE="$DIR/tests/produksjonssystem.yaml"
fi
export AIRBRAKE_PROJECT_ID=
export AIRBRAKE_PROJECT_KEY=
export AIRBRAKE_ENVIRONMENT=development
export SAXON_JAR="$DIR/jar/saxon9he.jar"
export JING_JAR="$DIR/jar/jing.jar"
# Lokal instans av Pipeline 2 (defaults to /opt/daisy-pipeline2)
# export PIPELINE2_HOME="$HOME/Desktop/daisy-pipeline"
export LOCAL_PIPELINE2_ENABLED=false
# Pipeline 2 i swarm (erstatt dette med localhost hvis vi fjerner støtte for lokale Pipeline 2-instanser)
export REMOTE_PIPELINE2_WS_AUTHENTICATION="false false false false"
export REMOTE_PIPELINE2_WS_AUTHENTICATION_KEYS="none none none none"
export REMOTE_PIPELINE2_WS_AUTHENTICATION_SECRETS="none none none none"
export REMOTE_PIPELINE2_WS_ENDPOINTS="http://nlbdocker-dev.lx.nb.no:18150/ws http://nlbdocker-dev.lx.nb.no:18151/ws http://nlbdocker-dev.lx.nb.no:18161/ws http://nlbdocker-dev.lx.nb.no:18152/ws"
export REMOTE_PIPELINE2_WS_AUTHENTICATION="false"
export REMOTE_PIPELINE2_WS_AUTHENTICATION_KEYS="none"
export REMOTE_PIPELINE2_WS_AUTHENTICATION_SECRETS="none"
export REMOTE_PIPELINE2_WS_ENDPOINTS="http://nlbdocker-dev.lx.nb.no:18161/ws"
# epub-to-html (defaults to /opt/nordic-epub3-dtbook-migrator)
export EPUB_TO_HTML_HOME="/opt/nordic-epub3-dtbook-migrator"
export EPUBCHECK_HOME="/opt/epubcheck"
# JAVA_HOME (ideally use Java 8 for this system!)
export JAVA_HOME="/usr/lib/jvm/java-21-openjdk-amd64/bin/java"