puffproject / test-runner

Backend microservice managing user code uploads and running test cases
MIT License
0 stars 0 forks source link

Add support for running test cases in Docker containers #1

Closed benjaminkostiuk closed 3 years ago

benjaminkostiuk commented 3 years ago

Reasearch more how to run the test cases in a docker container to prevent malicious code. The run endpoint should work for python test cases.

benjaminkostiuk commented 3 years ago

Ideas: Run test cases with 3 layers of security:

benjaminkostiuk commented 3 years ago

Also use --cache-from to speed up builds on individual test cases.

benjaminkostiuk commented 3 years ago

Build Dockerfile using tags for each submission id and place the COPY instruction for all files except the test file to be run. See https://stackoverflow.com/questions/43747776/copy-with-docker-but-with-exclusion. First copy should be on earlier layer, then run copy for test file later.