from __future__ import annotations import json import os import typing as t from glob import glob import click import pkg_resources import requests from tutor import config as tutor_config from tutor import exceptions from tutor import hooks as tutor_hooks from .__about__ import __version__ config = { "unique": { "AUTH_PASSWORD": "{{ 8|random_string }}", "MYSQL_PASSWORD": "{{ 8|random_string }}", "SECRET_KEY": "{{ 24|random_string }}", }, "defaults": { "VERSION": __version__, "AUTH_USERNAME": "lms", "DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/openedx-xqueue:{{ XQUEUE_VERSION }}", "HOST": "xqueue.{{ LMS_HOST }}", "MYSQL_DATABASE": "xqueue", "MYSQL_USERNAME": "xqueue", "REPOSITORY": "https://github.com/openedx/xqueue", "REPOSITORY_VERSION": "{{ OPENEDX_COMMON_VERSION }}", }, } # Initialization hooks # To add a custom initialization task, create a bash script template under: # tutorcodejail/templates/codejail/tasks/ # and then add it to the MY_INIT_TASKS list. Each task is in the format: # ("", ("", "", "