Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

uisautomation/school-data-cache

Repository files navigation

Cache School Data Application

Moved to https://gitlab.developers.cam.ac.uk/uis/devops/research-dashboard/school-data-cache

This is a project for a scheduled task that retrieves the school and department data from the ROO Contacts API on a daily basis and caches the data in an S3 json file. At the writing of this README the json file is only consumed by the PI Dashboard.

To set up the development environment:

virtualenv -p python3 venv
. venv/bin/activate
pip install -r test-requirements.txt

To run the tests:

. venv/bin/activate
python -m unittest

To select which settings file to use:

export APP_ENV={test|production}

To build the docker container:

docker build -t cache-school-data .

To run the docker container:

docker run --name cache-school-data-$APP_ENV --rm -e "APP_ENV=$APP_ENV" cache-school-data

About

Caching of University School metadata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published