malakhovks / jena-docker

Docker image for Apache Jena riot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker files for Jena

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 2 server with SPARQL endpoint and web interface

These are currently available 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.

Building

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

Dockerfile overview

The Dockerfiles for both images use the official java:8-jre-alpine base image, which is based on the alpine image; this clocks in at about 40 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_SHA1 and FUSEKI_SHA1 variables, which values should match the official Jena download .tar.gz.sha1 hashes, as approved in their release [VOTE] emails.

Note that the Jena download page do not link directly to the sha checksums, these can be found by modifying the .md5 download links to a sha1 extension, e.g. https://www.apache.org/dist/jena/binaries/apache-jena-3.0.0.tar.gz.sha1 or https://www.apache.org/dist/jena/binaries/apache-jena-fuseki-2.3.0.tar.gz.sha1. Alternatively, browse https://www.apache.org/dist/jena/binaries/

The JENA_MIRROR and FUSEKI_MIRROR should be http://www.eu.apache.org/dist/ or http://www.us.apache.org/dist/ - not http://www.apache.org/dist/

To minimize layer size, there's a single RUN with wget, sha1sum, tar zxf and mv - thus the temporary files 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.

About

Docker image for Apache Jena riot

License:Apache License 2.0


Languages

Language:Dockerfile 50.4%Language:Shell 49.6%