forked from glenrobson/SimpleAnnotationServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runDocker.sh
executable file
·24 lines (22 loc) · 1023 Bytes
/
runDocker.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
#!/bin/bash
if [ $# -eq 0 ]; then
echo "What backend do you want to use? Jena / Solr / Cloud"
read backend
else
backend="$1"
fi
if [[ "$backend" =~ ^[Jj]ena$ ]]; then
echo "Running SAS with Jena on http://0.0.0.0:8888/sas/"
docker build -t sas:latest -f docker/sas-tomcat/Dockerfile . && docker run -v /tmp/data:/usr/src/app/data --rm -p 8888:8080 --name sas sas:latest
elif [[ "$backend" =~ [Ss]olr ]]; then
echo "Running SAS with SOLR on port 8888. Solr port: 8983"
docker-compose -f docker/sas-solr/docker-compose.yml --project-directory . up
elif [[ "$backend" =~ [Cc]loud ]]; then
echo "Running SAS with SOLR Cloud on port 8888"
docker-compose -f docker/sas-solr-cloud/docker-compose.yml --project-directory . up
elif [[ "$backend" =~ [Ee]lastic ]]; then
echo "Running SAS with Elastic Cloud on port 8888"
docker-compose -f docker/sas-elastic/docker-compose.yml --project-directory . up
else
echo "I don't recognise '$backend'. Options are Jena / Solr / Cloud"
fi