Skip to content

Commit 4465c4c

Browse files
committed
SPARQL endpoint through Docker Compose
Note: hard-coded fuseki path /cwlviewer
1 parent 1b3d94c commit 4465c4c

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.5-jdk-8-alpine
1+
xFROM maven:3.5-jdk-8-alpine
22
MAINTAINER Stian Soiland-Reyes <[email protected]>
33

44
# Build-time metadata as defined at http://label-schema.org
@@ -50,6 +50,6 @@ ENV SPRING_DATA_MONGODB_HOST=mongo
5050
ENV SPRING_DATA_MONGODB_PORT=27017
5151

5252
# Expects a sparql server endpoint
53-
ENV SPRING_DATA_SPARQL_ENDPOINT=http://sparql:3030/all/
53+
ENV SPARQL_ENDPOINT=http://sparql:3030/all/
5454

5555
CMD ["/usr/bin/java", "-jar", "/usr/lib/cwlviewer.jar"]

docker-compose.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
version: '2'
22
services:
33
spring:
4-
image: commonworkflowlanguage/cwlviewer
4+
# To run from this source code instead of Docker hub,
5+
# disable "image:"" and enable "build:" below
6+
image: commonworkflowlanguage/cwlviewer
57
#build: .
68
ports:
79
- "8080:8080"
8-
# TODO:
9-
# volumes:
10-
# - .:/code
1110
links:
1211
- mongo
1312
- sparql
1413
environment:
15-
- SPRING_DATA_SPARQL_ENDPOINT="http://sparql:3030/all/"
14+
- SPARQL_ENDPOINT=http://sparql:3030/cwlviewer/
1615
- SPRING_DATA_MONGODB_HOST=mongo
1716
- SPRING_DATA_MONGODB_PORT=27017
1817
mongo:
1918
image: mongo
2019
sparql:
21-
image: stain/jena-fuseki
20+
## For debugging, expose the Fuseki port by enabling:
21+
# ports:
22+
# - "3030:3030"
23+
## To find the admin password, try:
24+
## docker-compose exec sparql grep admin /fuseki/shiro.ini
25+
image: stain/jena-fuseki
26+
# FIXME: --loc=/fuseki/databases/cwlviewer fails as it needs empty dir
27+
command: "/jena-fuseki/fuseki-server --loc=/fuseki/databases /cwlviewer"

0 commit comments

Comments
 (0)