Sign inSign up

placr/prodisstub

By placr

Updated about 10 years ago

A simple reply stub for prodis /assets and /titles calls for use in ADM tests.

Image
0

1.1K

placr/prodisstub repository overview

Placr PRODIS stub

This docker provides access to a very limited set of PRODIS functions:

  1. /Assets?modifiedSince=20160615T080000Z: Returns all assets modified since a certain data.
  2. /Title//metadata: Retrieves the metadata for a given Title guid
  3. /Assets//AdvancedAssetProperties. Retrieves some more info for a single asset.

The docker works on a set of files that have previously been grabbed from a real PRODIS server. The grab.py app is part of the repo but is not part of this docker.

The docker will first shift all files X days and then start gunicorn at port 8000 inside the docker.

Environment variables

SHIFT_DAYS	This will shift all license windows X days to the future. This way the dataset can be used over and over.
GRABBED_FILES_FOLDER	This variable where to find the grabbed files inside the docker. Typically the files are mapped via -v into the docker, e.g. at /files. 

Usage

Typical use case:

docker run -it -e SHIFT_DAYS=0 -e GRABBED_FILES_FOLDER='/files' -v /prodis-grabbed-files/:/files -p 8000:8000 placr/prodisstub

Tag summary

Content type

Image

Digest

Size

271.6 MB

Last updated

about 10 years ago

docker pull placr/prodisstub