Public | Automated Build

Last pushed: a year ago
Short Description
glot-run provides a http api for running code inside docker containers.
Full Description



This is a Docker image for glot-run (by Petter Rasmussen (@prasmussen)).

Environment variables

glot-run takes it's configuration from environment variables.
All vars needs to be set, no default values are provided.

Variable name Allowed values Example Description
API_ENVIRONMENT development | production production Development mode will enable auto compiling of changed files
API_HTTP_LISTEN_IP <ipv4 address> Listen ip
API_HTTP_LISTEN_PORT 1-65535 8090 Listen port
DATA_PATH <filepath> /home/app/data/ Path to save data files (users, languages)
LOG_PATH <filepath> /home/app/log/ Path to save logs
BASE_URL <url> Base url to where the api is hosted
ADMIN_TOKEN <string> some-secret Admin token used to access the /admin endpoints
DOCKER_API_URL <url> Url to docker api (must be available through port 80 for now)
DOCKER_RUN_TIMEOUT <seconds> 30 Maximum number of seconds a container is allowed to run
MAX_OUTPUT_SIZE <lines> 1000 Maximum number of lines returned from a run
Docker Pull Command
Source Repository