Container-based runners for GitHub autograding

Docker-based runners for GitHub Autograding

Software descriptions

Setup base runner image

Getting to GitHub Actions
Instructions on how to download and configure runners
$ podman run -it ubuntu bash
$ apt update
$ apt install -y curl tar build-essential
$ adduser grader
$ su grader
$ cd
$ mkdir actions-runner && cd actions-runner
$ curl -O -L https://github.com/actions/runner/releases/download/v2.273.4/actions-runner-linux-x64-2.273.4.tar.gz
$ tar xzf ./actions-runner-linux-x64-2.273.4.tar.gz
$ mv actions-runner-linux-x64-2.273.4.tar.gz ..
$ exit
$ cd /home/grader/actions-runner
$ bin/installdepedencies.sh
$ docker commit 2311 linhbngo/csc331runner:0.1
$ docker push linhbngo/csc331runner:0.1

Deploying a runner

$ docker run -it linhbngo/csc331runner:0.1 bash
$ su grader
$ cd actions-runner
Instructions on how to download and configure runners

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store