Skip to content

stain/jena-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker files for Jena

Build

This repository hosts Docker recipes for distributing Apache Jena.

Two Docker images are available:

  • jena - riot command line and friends, for use on the command line
  • fuseki - the Fuseki server with SPARQL endpoint and web interface

These are available from GitHub as:

..and from the Docker Hub as:

Note that although these Docker images are based on the official Apache Jena releases and do not alter them in any way, they do not constitute official releases from Apache Software Foundation, and are probably not the latest version.

Building

docker build -t jena jena
docker build -t jena-fuseki jena-fuseki

Dockerfile overview

The Dockerfiles for both images use the official eclipse-temurin:21-jre-alpine base image, which is based on the Alpine:3.19.1 image; this clocks in at about 62 MB.

The ENV variables like JENA_VERSION and FUSEKI_VERSION determines which version of Jena and Fuseki are downloaded. Updating the version also requires updating the JENA_SHA512 and FUSEKI_SHA512 variables, which values should match the official Jena download .tar.gz.sha512 hashes, as approved in their release [VOTE] emails.

The ASF_MIRROR use http://www.apache.org/dyn/mirrors/mirrors.cgi that redirect to a local mirror, with a fallback to the ASF_ARCHIVE http://archive.apache.org/dist/ for older versions.

To minimize layer size, there's a single RUN with curl, sha512sum, tar zxf and mv - thus the temporary files during download and extraction are not part of the final image.

Some files from the Apache Jena distributions are stripped, e.g. javadocs and the fuseki.war file.

The Fuseki image includes some helper scripts to do tdb loading using fuseki-server.jar. In addition, Fuseki has a docker-entrypoint.sh that populates shiro.ini with the password provided as -e ADMIN_PASSWORD to Docker, or with a new randomly generated password that is printed the first time.

Usage

For usage, see README for each of the Docker images: