GithubHelp home page GithubHelp logo

docker-image-api-reference's Introduction

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:

docker-image-api-reference's People

Contributors

glenrobson avatar zimeon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-image-api-reference's Issues

Image API 500 errors reported by Google

Google is reporting the following 500 errors:

https://iiif.io/api/image/2.1/example/reference/page1-full/full/full/0/default.jpg
https://iiif.io/api/image/2.1/example/reference/page2-full/full/256,256/0/default.jpg

Looking into the image API the following works OK:

https://iiif.io/api/image/2.1/example/reference/67352ccc-d1b0-11e1-89ae-279075081939/full/full/0/default.jpg

And the health check URL works:

https://iiif.io/api/image/2.0/example/reference/detail/info.json

So no error was flagged. 67352ccc-d1b0-11e1-89ae-279075081939 is a png as well as page1-full and page2-full.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.