If you are using docker on windows or Mac with virtual box you need to open the port there. That could be the issue.
Håvard Hi Bart,
I finally got around to taking this for a test spin, great that we can start deploying on DockerHub!
Unfortunately, I'm stuck in actually getting it to work. I can pull the image and start the container easily enough, but no joy on actually seeing the Workbench when accessing http://localhost:8080/rdf4j-workbench. The logs in the container don't show anything (catalina.out is just empty).
What I did:
docker pull eclipse/rdf4j-workbench:2.4.2-testing1
docker run -d -p 8080:8080 -e JAVA_OPTS="-Xms1g -Xmx4g" -v data:/var/rdf4j -v logs:/usr/local/tomcat/logs eclipse/rdf4j-workbench:2.4.2-testing1
After I've done this, docker ps shows: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fb11c037a403 eclipse/rdf4j-workbench:2.4.2-testing1 "catalina.sh run" 11 minutes ago Up 5 minutes 0.0.0.0:8080->8080/tcp cranky_turing
curl: (52) Empty reply from server
Any idea what might be the problem?
Cheers,
Jeen
Good point, seems like the tomcat image is indeed root… I’ll create a tomcat user.
Best regards
Bart
Seems quite decent Bart :)
The only thing I know that’s worth double checking is if tomcat is installed as root or not in the base image. Even in docker it’s a good idea to not run things as root.
Hi Håvard,
The Dockerfile itself resides in
https://github.com/eclipse/rdf4j-tools/tree/develop/assembly/src/main/dist/docker
Best regards
Bart
Hi Bart,
Where is the source for the dockerfile?
Hi,
with some help from the Eclipse team (since they manage the eclipse organization on
hub.docker.com),
I’ve added the Workbench+Server docker from eclipse/rdf4j-tools/tree/master/assembly/src/main/dist/docker
https://hub.docker.com/r/eclipse/rdf4j-workbench/
I’ve used the tag 2.4.1-testing, feedback is welcome of course.
Two things that can be improved :
- provide a tomcat username/password when starting the docker image
- configure HTTPS
(and/or maybe consider using Eclipse Jetty instead, since the server pom already includes a dependency on jetty-server…)
Best regards
Bart
_______________________________________________
rdf4j-dev mailing list
rdf4j-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/rdf4j-dev
|