Hi Pietro, a few questions: 1. When you refer to your "db" are you working with a TDB dataset, a TDB2 dataset, an RDF serialized file? 2. Are you exclusively accessing the datasets through Fuseki or do you also have processes directly accessing the underlying physical datastores? 3. Is your intention to have multiple containers access the same physical datastore? 4. Is the physical datastore hosted on an APFS filesystem, and then bind mounted into the containers, or is the datastore stored on a docker volume and mounted into the containers?
I'm currently working through a project to get Fuseki working inside containers in a flexible but cross-platform/cross-architecture way and happy to report back after I make some progress. Thanks! - Phillip On Thu, Jun 13, 2024 at 7:01 AM Pietro Liuzzo <[email protected]> wrote: > > Thank you very much! > > Both hints and repositories have been very useful. > > what worked in the end for me, at least to get the container started, was > actually to set the platform in docker-compose. > > fuseki: > platform: linux/amd64 > > and change the first FROM statement to > FROM openjdk:${JAVA_VERSION}-jdk-alpine AS base > > > I then get to the same as Martynas “No dataset specified on the command line" > > Thank you very much > Pietro > > > > On 31 May 2024, at 08:49, Martynas Jusevičius <[email protected]> > > wrote: > > > > Hi Pietro, > > > > I get a warning but I can run the > > https://github.com/AtomGraph/fuseki-docker image without having it > > built for Mac. > > That might be because I have checked "open using Rosetta" in the > > Terminal.app Get Info. > > > > % docker run atomgraph/fuseki > > > > WARNING: The requested image's platform (linux/amd64) does not match > > the detected host platform (linux/arm64/v8) and no specific platform > > was requested > > > > No dataset specified on the command line. > > > > > > Martynas > > > > On Thu, May 30, 2024 at 2:44 PM Pietro Liuzzo <[email protected]> > > wrote: > >> > >> Dear all, > >> > >> I am not able to find a base image for java 17 which would work on MAC M1 > >> for the Docker-compose file installing Apache Jena Fuseki (from here > >> <https://repo1.maven.org/maven2/org/apache/jena/jena-fuseki-docker/5.0.0/>). > >> Apparently eclipse-temurin:17-alpine does not support M1. I have tried > >> several of the variants of openjdk 17 images which I could find, but the > >> JAVA_HOME then cannot be found and / or objcopy cannot be found. > >> > >> Did anyone succeed in adapting the Dockerfile to work on Mac with M1/M2 ? > >> > >> Additionally, I would like to ask if I can point from my configurations in > >> Docker-compose to an existing database location accessed by multiple > >> instances of Apache Jena Fuseki running on different machines. The > >> location of the db is on a shared mount. > >> > >> Thanks a lot! > >> All best > >> Pietro >
