Skip to content

Provides Docker image configuration for serving static iiif.lib.umd.edu files.

Notifications You must be signed in to change notification settings

umd-lib/iiif-static-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IIIF Static Files

Provides a Docker image configuration for serving static iiif.lib.umd.edu application files, including the Mirador viewer.

This Docker image extends umd-web-static-files by:

  • Adding an "index.html" home page

  • Adding static Mirador viewer files from https://github.com/umd-lib/mirador-static

  • Replacing the Nginx configuration with a configuration that proxies some URLs to legacy IIIF servers.

See umd-web-static-files for more information about using this image.

Note: When updating the base "umd-web-static-files" Docker image version, be sure to update the "docker_config/nginx/conf.d/default.conf" file to reflect any changes.

Docker Image

To build the Docker image:

> docker build -t docker.lib.umd.edu/iiif-static-files:<VERSION> -f Dockerfile .

where <VERSION> is the version for the image.

For example, to build version 1.0.0:

> docker build -t docker.lib.umd.edu/iiif-static-files:1.0.0 -f Dockerfile .

Or using dockerx:

> docker buildx build . --builder=kube -t docker.lib.umd.edu/iiif-static-files:<VERSION> --push

The image should then be pushed to the UMD Nexus.

Mirador Viewer

Multiple versions of the Mirador viewer are included in this repository, in the "html/viewer" subdirectory.

These versions were generated from https://github.com/umd-lib/mirador-static as follows:

  1. In "html/viewer" directory, clone the "mirador-static" repository, and switch into the directory:
> cd html/viewer
> git clone git@github.com:umd-lib/mirador-static.git
> cd mirador-static
  1. Checkout the Git tag of the version to use (where <VERSION> is the Git tag):
> git checkout <VERSION>

For example, for version 1.3.0:

> git checkout 1.3.0
  1. Delete the ".git" subdirectory, as it is not needed, and keeping it would unnecessarily increase the size the Docker image:
> rm -rf .git
  1. Switch back to the parent directory:
> cd ..
  1. Rename the "mirador-static" subdirectory to the version number (where <VERSION> is the name of the version:
> mv mirador-static <VERSION>

For example, for version 1.3.0:

> mv mirador-static 1.3.0
  1. Commit the changes.

About

Provides Docker image configuration for serving static iiif.lib.umd.edu files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages