Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loris-imageserver/loris-docker
Loris docker image suitable for development environments
https://github.com/loris-imageserver/loris-docker
Last synced: 3 months ago
JSON representation
Loris docker image suitable for development environments
- Host: GitHub
- URL: https://github.com/loris-imageserver/loris-docker
- Owner: loris-imageserver
- Created: 2015-03-30T14:12:51.000Z (almost 10 years ago)
- Default Branch: development
- Last Pushed: 2023-09-15T01:24:28.000Z (over 1 year ago)
- Last Synced: 2024-08-02T12:47:56.107Z (6 months ago)
- Language: Python
- Size: 60.1 MB
- Stars: 16
- Watchers: 6
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - loris-imageserver/loris-docker - Loris docker image suitable for development environments (others)
README
**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](https://github.com/loris-imageserver/loris)
**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://: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 :/usr/local/share/images -p 5004:5004
### Use samba to load images
Add the images directory as a volume and mount on a Samba or sshd container. [(See svendowideit/samba)](https://registry.hub.docker.com/u/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