-
Notifications
You must be signed in to change notification settings - Fork 5
/
run-reader.sh
executable file
·34 lines (28 loc) · 1.23 KB
/
run-reader.sh
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
#!/usr/bin/env bash
export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n"
export PORT="${PORT:-8082}"
# Restolino configuration
export RESTOLINO_CLASSES="zebedee-reader/target/classes"
export PACKAGE_PREFIX=com.github.onsdigital.zebedee.reader.api
export CONTENT_DIR="content"
export FORMAT_LOGGING=true
# CMD config (dev local values)
export ENABLE_DATASET_IMPORT=true
export DATASET_API_URL="http://localhost:22000"
export DATASET_API_AUTH_TOKEN="FD0108EA-825D-411C-9B1D-41EF7727F465"
export FORMAT_LOGGING=true
# Development: reloadable
mvn clean package dependency:copy-dependencies -Dmaven.test.skip=true -Dossindex.skip=true && \
java $JAVA_OPTS \
-DFORMAT_LOGGING=$FORMAT_LOGGING \
-Dlogback.configurationFile=zebedee-reader/target/classes/logback.xml \
-Drestolino.classes=$RESTOLINO_CLASSES \
-Dcontent_dir=$CONTENT_DIR \
-DSTART_EMBEDDED_SERVER=N \
-Drestolino.packageprefix=$PACKAGE_PREFIX \
-DFORMAT_LOGGING=$FORMAT_LOGGING \
-javaagent:zebedee-cms/target/dependency/aws-opentelemetry-agent-1.32.0.jar \
-Dotel.propagators=tracecontext,baggage \
-Dotel.javaagent.enabled=false \
-cp "zebedee-reader/target/classes/:zebedee-reader/target/dependency/*" \
com.github.davidcarboni.restolino.Main