Link Search Menu Expand Document
View this file on Github Download as Schema.org

SPARQL Anything Docker Image

Instructions to build a docker image with a running Fuseki server.

Create a Dockerfile as follows, see also this file:

FROM mcr.microsoft.com/playwright/java:focal
#    needed for the headless browser

LABEL description="SPARQL Anything"

RUN apt-get update && apt-get install -y maven
# Set the locale https://stackoverflow.com/questions/28405902/how-to-set-the-locale-inside-a-debian-ubuntu-docker-container
RUN apt-get install locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
    locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV VERSION "0.9.0-SNAPSHOT"

# normal
CMD cd /app && mvn clean install && \
    java -cp \
    "/app/sparql-anything-fuseki/target/sparql-anything-server-${VERSION}.jar:$(for i in /app/*jar ; do printf '%s:' $i ; done)" \
    com.github.sparqlanything.fuseki.Endpoint