-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Ian Young edited this page Jun 29, 2020
·
6 revisions
This project implements the Metadata Query Protocol based on the technology found in the Shibboleth Metadata Aggregator. See project README.
The project itself results in a self contained jetty based server that listens on port 9000.
- obtain source and build the project
- after the below commands are executed you will have
target/mdq-server-0.0.1-SNAPSHOT.jar
git pull https://github.com/iay/mdq-server.git
cd mdq-server
mvn -Prelease clean install
- create an APPHOME environment for your JAR - we will refere to ${MDQ_HOME}
export MDQ_BUILD=~/mdq-server/
export MDQ_HOME=/opt/mdq-server
mkdir -p /opt/mdq-server/bin /opt/mdq-server/conf /opt/mdq-server/data /opt/mdq-server/logs
cp $MDQ_BUILD/target/mdq-server-0.0.1-SNAPSHOT.jar $MDQ_HOME/bin/mdq-server.jar
This project uses spring boot to get things rolling at startup. We can therefore use a few configuration files with command line overrides to tell the application where to find its configuration information.
Example startup commands:
java -Dapp.home=${MDQ_HOME} -jar ${MDQ_HOME}/bin/mdq-server.jar \
--spring.config.location=file://${MDQ_HOME}/conf/mdq-server.properties
OR using sudo
sudo java -Dapp.home=${MDQ_HOME} -jar ${MDQ_HOME}/bin/mdq-server.jar \
--spring.config.location=file://${MDQ_HOME}/conf/mdq-server.properties
The stock template files can be located in the source tree at ${MDQ_BUILD}/src/main/resources
To customise the configuration you will want to recreate these files in your ${MDQ_HOME}/conf
directory.