TDA283-compiler-construction / project

Material for TDA283 / DIT300 Compiler Construction
11 stars 27 forks source link

Add image argument to docker run script #7

Closed williamleven closed 4 years ago

williamleven commented 4 years ago

This PR adds an image (-i) argument to the test-runner script for docker tester/Docker/runtest.sh.

The argument defaults to the previously hardcoded image tda283/tester:latest so there should be no breaking changes for any users.

With this change, students will be able to use the same script and toolchain even if they need a custom Dockerfile to build their compiler with another language och generation tool. It will also allow the use of a published docker image so that the user doesn't have to build the image on each computer they will be using.

The changes also introduce the possibility of splitting the currently quite large default image into several language-specific images to reduce download sizes as well as buildtimes.