Public | Automated Build

Last pushed: 2 months ago
Short Description
A Dockfile deployment of IIP image server with OPENJPEG
Full Description

Docker build of IIP Image Server 1.0 with OPENJPEG 2.1 on Ubuntu 14.04

A Dockfile deployment of IIP image server with OPENJPEG @ and

Docker hub respository @

Build successes are logged @

IIIF validator v 1.0.0 @

Please also refer to

Use pre-built image

Download image from docker hub. Defaults to latest tag. Docker will normally run as root unless otherwise configured.

$ sudo docker pull bdlss/iipsrv-openjpeg-docker

To run the docker command without sudo, you need to add your user (who must have root privileges) to the docker group. To do this run following command:

$ sudo usermod -aG docker <user_name>

Build from scratch (optional)

Use local Dockerfile to build image. Defaults to latest tag.

$ sudo docker build -t bdlss/iipsrv-openjpeg-docker .

Mount a host directory for image store


First, mount a host directory:

sudo docker run -d -P --name iipimages -v /<host dir>:/<container dir> bdlss/iipsrv-openjpeg-docker


sudo docker run -d -P --name iipimages -v /home/iipsrv/data:/var/www/localhost/images bdlss/iipsrv-openjpeg-docker`

The above means that the host directory /home/iipsrv/data will be mapped to the directory within the container for image store.


Download the images into your mapped host images directory, e.g. /home/iipsrv/data.

cd <your host images directory>
chmod 777 67352ccc-d1b0-11e1-89ae-279075081939.jp2
chmod 777 PalaisDuLouvre.tif

Start the container

Defaults to latest tag.

$ sudo docker run -d -p 80:80 bdlss/iipsrv-openjpeg-docker

This will push the docker container port 80 to your localhost port 80. Change the first parameter to 8080 if required (i.e. you already have a webserver running on your local machine).


Point your browser to http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=67352ccc-d1b0-11e1-89ae-279075081939.jp2/full/full/0/default.jpg

Or http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=PalaisDuLouvre.tif/full/full/0/default.jpg

After starting the container, you can IIIF validate your images from the container command line:

To get to the container command line use:

sudo docker ps
sudo docker exec -it <container ID> /bin/bash

Then for an image served at http://localhost:8080/<prefix>/<image_id> the validator can be run with:

$ python /tmp/iiif-validator-1.0.0/ -s localhost:8080 -p <prefix> -i <image_id> --version=2.0 -v


$ python /tmp/iiif-validator-1.0.0/ -s localhost:80 -p "fcgi-bin/iipsrv.fcgi?IIIF=" -i 67352ccc-d1b0-11e1-89ae-279075081939.jp2 --version=2.0 -v

Documentation and examples

Further documentation and examples are available here

Docker Pull Command
Source Repository