forked from schema-repo/schema-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·25 lines (22 loc) · 1 KB
/
run.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
#!/bin/bash
cd `dirname "$0"` # connect to root
function usage() {
echo "Usage: $0 <backend-type>"
echo ""
echo "backend-type : Specify which backend to run. Valid values are: in-memory, file-system and zookeeper."
exit 1
}
if [[ $# == 0 ]]; then
usage
elif [[ $1 == 'in-memory' ]]; then
echo "Starting Schema Repo Server with in In-Memory backend"
java -cp bundle/target/schema-repo-bundle-*-withdeps.jar org.schemarepo.server.RepositoryServer bundle/config/in-memory-config.properties
elif [[ $1 == 'file-system' ]]; then
echo "Starting Schema Repo Server with local file system backend"
java -cp bundle/target/schema-repo-bundle-*-withdeps.jar org.schemarepo.server.RepositoryServer bundle/config/local-file-system-config.properties
elif [[ $1 == 'zookeeper' ]]; then
echo "Starting Schema Repo Server with ZooKeeper backend"
java -cp zk-bundle/target/schema-repo-zk-bundle-*-withdeps.jar org.schemarepo.server.RepositoryServer zk-bundle/config/config.properties
else
usage
fi