Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] workbench+server image on hub.docker eclipse

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

On 4 Jan 2019, at 03:57, Jeen Broekstra <jeen.broekstra@xxxxxxxxx> wrote:

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

But opening http://localhost:8080/rdf4j-workbench on my machine shows an error. In fact it's a very odd error as it says "localhost didn't send any data". Curling to it gives this:

curl: (52) Empty reply from server

Any idea what might be the problem?

Cheers,

Jeen

On Mon, Nov 12, 2018 at 10:28 PM Bart Hanssens (BOSA) <bart.hanssens@xxxxxxxxxxxx> wrote:

Good point, seems like the tomcat image is indeed root… I’ll create a tomcat user.

 

Best regards

 

Bart

 

From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx> On Behalf Of Håvard Ottestad
Sent: maandag 12 november 2018 9:27
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: Re: [rdf4j-dev] workbench+server image on hub.docker eclipse

 

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. 

Håvard


On 9 Nov 2018, at 15:35, Bart Hanssens (BOSA) <bart.hanssens@xxxxxxxxxxxx> wrote:

Hi Håvard,

 

The Dockerfile itself resides in https://github.com/eclipse/rdf4j-tools/tree/develop/assembly/src/main/dist/docker

 

Best regards

 

Bart

 

From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx> On Behalf Of Håvard Ottestad
Sent: vrijdag 9 november 2018 15:29
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: Re: [rdf4j-dev] workbench+server image on hub.docker eclipse

 

Hi Bart,

 

Where is the source for the dockerfile?

Håvard


On 9 Nov 2018, at 12:59, Bart Hanssens (BOSA) <bart.hanssens@xxxxxxxxxxxx> wrote:

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

_______________________________________________
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

_______________________________________________
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
_______________________________________________
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

Back to the top