Contains business logic to automatic create and manage DSMLP courses
# make sure you're in the repo
cd create-dsmlp-course
# create the container
docker build -t create-course .
# mount the appropriate volumes and enter the container
docker run \
-v $(pwd):/opt/create-dsmlp-course \
-v $(pwd)/etc:/etc/create-dsmlp-course \
-v $(pwd)/tests/kubespawner_profiles:/export/kubespawner_profiles \
-v $(pwd)/tests/nbgrader:/export/nbgrader \
-v $(pwd)/tests/home:/export/home \
-v $(pwd)/tests/datasets:/export/datasets \
-ti create-course /bin/bash
# run the unit tests once in the interactive container
pytest
Autobuilds are configured on dockerhub as ucsdets/create-dsmlp-course
Set logToFile: true if you want the log file as one of the outputs of this program (rather than just stdout). logfile is located at /var/log/create-course.log
You can set the regex rules to make sure a course fits the course id code within course.regex
All default course switches are specified with a -d- switch prefix.
Specify how you want your default json courses to look like. Follow current example in this directory's /etc/
add describe class
Add duplicate option
docker pull ucsdets/create-dsmlp-course:latest