From: Mikel E. A. <mik...@gm...> - 2015-10-28 15:11:36
|
Hi; I'm preparing a Docker image that includes Blazegraph, but Blazegraph is not working. It must be a problem with the Docker setting but perhaps someone can give a pointer. (I have also submitted the question to stack overflow [1]) The Dockerfile [2] isimply copies a working installation of blazegraph and executes the nano sparql server: COPY blazegraph /LinkedDataServer/blazegraph CMD java -server -jar blazegraph/bigdata-bundled.jar When I run the container (also including pubby and refine): docker run -d -p 9999:9999 -p 3333:3333 -p 8080:8080 mikeleganaaranguren/linked-data-server:0.0.1 It runs fine, i.e. I can access Blazegraph at http://127.0.0.1:9999. However, when I try to do a query or update data I get "ERROR: Could not contact server". Also, I can't access the server programmatically (Connection reset by peer): wget http://127.0.0.1:9999/bigdata/sparql?query=select%20*%20where%20{%20?s%20?p%20?o%20}%20limit%201 However when I enter the image and run blazegraph manually I can do the wget above, both to localhost and the "internal" IP of the image. Obviously there is something wrong with the Docker setting, but any clues will be wellcome. Also, is there any blazegraph log I can access when runing blazegraph like this? Thanks [1] http://stackoverflow.com/questions/33368741/docker-container-with-blazegraph-triple-store-not-working-possibly-due-to-networ [2] FROM ubuntu:14.04 MAINTAINER Mikel Egaña Aranguren <my.email@x.com> RUN apt-get update && apt-get install -y openjdk-7-jre wget curl RUN mkdir /LinkedDataServer COPY google-refine-2.5 /LinkedDataServer/google-refine-2.5 COPY blazegraph /LinkedDataServer/blazegraph COPY jetty /LinkedDataServer/jetty EXPOSE 9999 EXPOSE 3333 EXPOSE 8080 WORKDIR /LinkedDataServer CMD java -server -jar blazegraph/bigdata-bundled.jar CMD google-refine-2.5/refine -i 0.0.0.0 WORKDIR /LinkedDataServer/jetty CMD java -jar start.jar jetty.port=8080 -- Mikel Egaña Aranguren, Ph.D. http://mikeleganaaranguren.com |