InfoMark is a free, scalable, modern, and open-source online course management system supporting auto-testing of programming assignments scaling to thousands of students and several courses.
Uploaded solutions to programming assignments are tested automatically. For more information about writing such tests, see our Tutor’s Guide. On how to use the system, please refer to the Administrator’s Guide. And for development, please refer to our Developer’s Guide.
Teaching assistants (tutors) can grade these homework solutions online. The platform supports multiple courses, each with various exercise groups, slides and course material. The backend server talks RESTful JSON such that you can write your scripts using ,e.g., Python.
These commands are the same for deployment on your local machine or deployment in production on a server. Please download the latest release from the release page. These releases ship a single binary containing all required files. The only dependency is docker and docker-compose.
We will explain the necessary steps to spin up a fully production-ready system on your machine. InfoMark is implemented as a modern CLI with POSIX-compliant flags.
Without any lengthy explanation, you can spin up an instance of InfoMark from scratch via:
# Create configuration ./infomark console configuration create > infomark-config.yml # Create docker-compose for database, rabbitMQ, redis ./infomark console configuration create-compose infomark-config.yml > docker-compose.yml # Start dependencies sudo docker-compose up -d # Start InfoMark server export INFOMARK_CONFIG_FILE=`realpath infomark-config.yml` ./infomark serve # point your browser to http://localhost:2020
InfoMark has the following minimal requirements:
- one CPU core for server
infomark serve(1GB RAM)
- one CPU core for each background worker
infomark work(memory requirement depends on your docker-image size for the programming assignments)
We assume an Ubuntu system. But InfoMark will also happily do its business on other systems that provide docker (>= v1.13) and docker-compose. There are no other dependencies you need to juggle with.
First create a configuration using InfoMark and write it to
./infomark console configuration create > infomark-config.yml
This config file is populated with values to provide a minimal working (example). Strong passwords are generated (each time you call this command). The configuration file might seem a bit complex at first glance, but it should work out-of-the-box.
We use docker-compose for handling dependencies in a sandbox
./infomark console configuration create-compose infomark-config.yml > docker-compose.yml
It will create a ready-to-use docker-compose file. For all following commands, the configuration file
infomark-config.yml is required. These commands expect this configuration file to be specified in the environment variable
INFOMARK_CONFIG_FILE. You might want to specify this information by
If you do forget to set this environment variable, the following commands will remind you to do so.
To start all dependencies just run the newly generated docker-compose file via
Before starting the server, you might want to check your configuration
./infomark console configuration test infomark-config.yml
This will make InfoMark try to speak to the database, RabbitMQ and Redis from the Docker-Compose setup. It will also test if it can save uploads. You will probably get the feedback, that a privacy statement file does not exist. We ship one example of a privacy statement in German.
If everything is green, start the server by
serve command will take care of initializing the database when starting the first time.
Point your browser to http://localhost:2020. This will display the login page of InfoMark.
To further enable two background workers, just run
sudo ./infomark work -n 2
Sudo is required to start docker containers on behalf of the current user (unless you added the user to the docker-group). The configuration for the work and docker environment can be tested as well by
./infomark console configuration test infomark-config.yml --test worker
Upgrading InfoMark is also easy: Stop the InfoMark server and worker, replace the binary and start the server and worker again.
To add a user, please register your user in the web interface. After registration, the email address needs to be confirmed. If sendmail is configured, you will receive an instruction email containing a link to activate this account.
Let us activate the user manually using the console. Further, we will upgrade the permission of this user to have root privileges:
# confirm email ./infomark console user confirm firstname.lastname@example.org # find the id of a user ./infomark console user find email@example.com 1 YourFirstname YourLastname firstname.lastname@example.org # add the user with id "1" to admins. ./infomark console admin add 1
InfoMark is designed to run within IT-controlled private environments in public clouds on your own servers to be compliant with any data privacy issues providing data sovereignty.
It is based on several design choices:
Be open, Never lock-in to expand
Every part must be open-source, scalable, reliable and robust. It must be easy to extract and use the information outside of InfoMark. Development must be open and adapting the implementation has to be possible. Writing scripts (e.g. in Python) for common jobs must be easy. We provide an API description.
Be user-friendly to grow
The entire system must be easy to deploy, maintain and update even for non-technical users with basic IT skills. We want to provide decisions and not options. It should have a near-zero administration. You probably have better things to do than playing a server administrator.
Be robust and reliable to earn trust
Auto-Testing of programming assignments must be language-agnostic, isolated and safe. All intense operations must be asynchronously scheduled. The frontend must be light-weight, fast and responsive. Creating and restoring a database backup is not supposed to be a nervous breakdown.
Be modern and simple
We deliberately chose GO for the backend and ELM for for the frontend. We had a hard time to re-deploy our old system written in Ruby-On-Rails. There should be no magic behind the scene, which breaks when updating the dependencies.
Be as general as necessary and not as possible
We deliberately narrowed down the feature set to be robust. Any discussion board or support of pdf annotation is out-of-scope by our design. InfoMark solves a very specific problem: automated testing of homework programming exercises.
This section provides a brief overview of the InfoMark system, including a description of its parts. We use continuous-integration tests to ensure the implementation can be built and passes all tests at any point.
The backend acts as a Restful JSON web server and is written in Go. All dependencies are encapsulated in a docker-compose configuration file. The dependencies are:
- We use a PostgreSQL database to store all dynamic data.
- Computationally intensive operations are scheduled and balanced across several background workers asynchronous via RabbitMQ.
- It uses Redis as a light-weight key-value memory store.
- Docker is used as a light-weight sandbox to run auto-tests of solutions to programming assignments in an isolated environment.
Each exercise task can be linked to a docker-image and a zip file containing the test code to support testing. See the Administrator Guide for more details.
Part of the backend is the server. The server talks RESTful JSON to remote CLI, the Web-interface and workers.
Part of the backend are workers, which are separate processes that handle the auto-testing of uploads. These workers can be distributed across multiple machines. We recommend using one worker process for 100 students. The workers can be added or removed at any time. InfoMark uses AMPQ as a message broker. Each submission will be held in a queue and each worker will execute one job concurrently to avoid too much system load. Our recommendation is one worker per available CPU core.
The used amount of memory per submission can be configured. Memory-swapping is deactivated.
To avoid manual interaction with the database, InfoMark provides a console to run several commands like enrolling a student into a course/group, set the role of a user.
./infomark console user find jane.doe 42 Jane Doe email@example.com ./infomark console user confirm Usage: infomark console user confirm [email] [flags] ./infomark console user confirm firstname.lastname@example.org ./infomark console course enroll Usage: infomark console course enroll [courseID] [userID] [role] [flags] # roles: student (0), tutor/ta (1), admin (2) ./infomark console course enroll 1 42 2
The initial system was developed in the computer graphics groups of the University of Tübingen because there are no comparable systems that meet our requirements.
Things that could be different
During the design of the system we had to make compromises given some constraints:
- The system has its own user-management. Unfortunately, we had not the option to rely on external OAuth2. This bad (as user management is difficult) and good (this help to be compliant with GDPR).
- To avoid any hassle of creating a proper email setups, we use a pre-installed sendmail configuration. Creating a working email service is hard. Creating a proper and secure email service is almost impossible.