GithubHelp home page GithubHelp logo

loris-docker's Introduction

Note: This repository has not been maintained all that well. Fixes are welcome, but you might also want to look at https://github.com/bodleian/loris-grok-docker

Docker build of Loris IIIF Image Server

Docker container running Loris IIIF Image Server

Warning : the actual version is a simple way to have loris works, but the server is the developpement werkzeug server with debugging enabled. Hence not suitable for developpement purpose.

Use pre-built image

Download image from docker hub.

$ docker pull lorisimageserver/loris

Build from scratch

Use local Dockerfile to build image.

$ docker build -t your_image_name .

Start the container and test

$ docker run -d -p 5004:5004 lorisimageserver/loris

Point your browser to http://<Host or Container IP>:5004/01/02/0001.jp2/full/full/0/default.jpg

Use your own image folder

Add your image directory as a volume

$ docker run -d -v <your-img-folder>:/usr/local/share/images -p 5004:5004 <docker-image>

Use samba to load images

Add the images directory as a volume and mount on a Samba or sshd container. (See svendowideit/samba)

$ docker run --name loris -v /usr/local/share/images -d -p 5004:5004 lorisimageserver/loris
$ docker run --rm -v /usr/local/bin/docker:/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba loris

Create loris cluster

Create data volume container

$ docker run --name loris_data -v /usr/local/share/images -v /var/cache/loris -d ubuntu echo Data only container for loris images and cache

Create two loris server containers with shared image and cache volumes

$ docker run --name loris_server_1 --volumes-from loris_data -d lorisimageserver/loris
$ docker run --name loris_server_2 --volumes-from loris_data -d lorisimageserver/loris

Build nginx image with custom config

$ cd nginx
$ docker build -t lorisimageserver/nginx .

Run nginx proxy

$ docker run --name loris_proxy  --link loris_server_1:server1 --link loris_server_2:server2 -d -p 80:80 lorisimageserver/nginx

loris-docker's People

Contributors

lsh-0 avatar eliotjordan avatar yulgit1 avatar bcail avatar seguinbe avatar nuclearredeye avatar thatbudakguy avatar

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.