/docker-image-api-reference

This is a docker deployment of the IIIF Image API reference implementation.

Primary LanguagePython

docker-image-api-reference

This is a docker deployment of the IIIF Image API reference implementation.

This is currently using the image api implementation created by @zimeon. This repo is intended to wrap up Simeon's code in docker and manage the deployment to Amazon.

Note the URLs for accessing IIIF images is as follows:

and the directory for storing images is:

/app/iiif/testimages

Build

To build the docker image run:

 docker build -t iiif-image .

To run the image:

 docker run -it --rm -p 8000:80 --name iiif-image iiif-image:latest

To run the above on one line:

docker build -t iiif-image . && docker run -it --rm -p 8000:80 --name iiif-image iiif-image:latest

Documentation on deploying to AWS: https://docs.aws.amazon.com/AWSGettingStartedContinuousDeliveryPipeline/latest/GettingStarted/ECS_CD_Pipeline.html

Testing

To get a list of URLs from the IIIF api website you can run the following:

find ~/development/iiif/api/ -name "*.json" -exec grep 'api/image' {} \; |grep -v profile |grep reference |grep -o 'http://.*"'|sort |uniq|sed 's/"//g'

which currently gives: