Sign inSign up

illumidesk/grader-setup-service

By illumidesk

Updated over 4 years ago

Image
0

10K+

illumidesk/grader-setup-service repository overview

IllumiDesk's Grader Setup Service

Overview

Microservice used to setup new shared grader notebooks.

Dev Install

Install in editable mode:

pip install -e .

Run Application

Run application locally with debug mode enabled:

export FLASK_APP=graderservice
export FLASK_ENV=development
flask run

Note: the service does require environment variables however all have defaults. You can set your own values by using the export <env-var-here>=<env-var-value> before starting the application. You can also set environment variables with the docker run command.

Update Dependencies

pip-compile requirements.in

Environment Variables

Environment VariableDescriptionTypeDefault Value
GRADER_IMAGE_NAMEThe shared grader notebook image:tagstringillumidesk/grader-notebook:latest
GRADER_IMAGE_PULL_POLICYThe shared grader notebook image pull policystringIfNotPresent
GRADER_PVCThe Kubernetes PVC for the grader setup servicestringgrader-setup-pvc
GRADER_SHARED_PVCThe shared grader notebook PVC for the exchange directorystringexchange-shared-volume
GRADER_REQUESTS_MEMThe guaranteed amount of memory (RAM).string""
GRADER_REQUESTS_CPUThe guaranteed CPU.string""
GRADER_LIMITS_MEMThe upper bound memory (RAM) limit.string"4G"
GRADER_LIMITS_CPUThe upper bound CPU limit.string"2000m"
ILLUMIDESK_MNT_ROOTRoot directory for {org_name}/grader-{course_id}string/illumidesk-courses
ILLUMIDESK_NB_EXCHANGE_MNT_ROOTRoot directory for {org_name}/exchangestring/illumidesk-nb-exchange
IS_DEBUGSets the debug option to True or False for the Kubernetes client and the shared grader notebookboolTrue
NAMESPACEThe Kubernetes namespace namestringdefault
NB_UIDThe user's uid that owns the shared grader home directorystring10001
NB_GIDThe user's gid that owns the shared grader home directorystring100

License

Apache 2.0

Tag summary

Content type

Image

Digest

Size

358.1 MB

Last updated

almost 5 years ago

docker pull illumidesk/grader-setup-service