Claude - is this a speculative question or have you experienced a problem?
mmap in docker works perfectly well. Once you are running in the
container, it's running in Alpine Linux. stain/fuseki uses
java:8-jre-alpine.
Any use of mmap depends on the host OS/VM boundary as well.
Andy
With Jena 3.8.0 the port mapping issue with the UI should have gone away.
"FROM openjdk:8" is the newer base image for java+docker these days but
java:8-jre-alpine is fine.
I have an ultra-minimal Dockerfile if that helps.
On 10/08/18 08:22, Claude Warren wrote:
Bruno,
Thanks for the investigative effort. It is good to know that mmap files
work in Docker, though worrying as well for the reasons you cite.
thx again, and I will post here if I find anything more.
Claude
On Fri, Aug 10, 2018 at 2:01 AM, Bruno P. Kinoshita <
[email protected]> wrote:
Hi Claude,
I am running the stain/fuseki based version of fuseki on docker.
I use the same when running Skosmos or when I want to quickly test
something in Jena and don't have my Eclipse workspace.
I am wondering how well the memory mapped files in TDB work inside the
docker container. Or even if they do at all? Does anyone know?
I assumed it would work, but never tried mmap within a container. So found
a repo with a test for mmap in Docker.
https://github.com/eugeneware/mmap
So did a quick test
```shell
$ cd /tmp
$ git clone https://github.com/eugeneware/mmap.git
$ cd mmap
$ docker pull stain/jena-fuseki:latest
$ docker run --name jena_fuseki_1 --rm -i -t -v $(pwd -P):/srv
stain/jena-fuseki bash
bash-4.3# apk add --no-cache make gcc g++
###....
bash-4.3# cd /srv
bash-4.3# gcc -o mmap mmap-problem.c # alpine and glibc issues, have to
recompile within container
bash-4.3# ./mmap test.txt
hello
world
mmap works from internal filesyste - hoorah!
```
So apparently mmap should work OK. I have no idea how well it works in
relation to having multiple containers using it, isolation, performance,
etc. But hope it helps a bit at least. If you learn more about it, please
share here (:
Cheers
Bruno
________________________________
From: Claude Warren <[email protected]>
To: [email protected]
Sent: Friday, 10 August 2018 2:50 AM
Subject: Fuseki on Docker
I am running the stain/fuseki based version of fuseki on docker.
I am wondering how well the memory mapped files in TDB work inside the
docker container. Or even if they do at all? Does anyone know?
--
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren