Skip to content

Commit

Permalink
Initial commit of base autograder image
Browse files Browse the repository at this point in the history
  • Loading branch information
dbecker1 committed Dec 9, 2018
0 parents commit e866325
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.DS_Store
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM gradescope/auto-builds:ubuntu-18.04

ENV CS2110_AUTOGRADER_VERSION 0.0.1

ENV AUTOGRADER_ROOT=/autograder \
ZUCC_FILES=/zucc_files \
DEBIAN_FRONTEND=noninteractive

ADD ./run_autograder $AUTOGRADER_ROOT/
ADD ./zucc_files/ /zucc_files

### Install zucchini and its dependencies
RUN cd $ZUCC_FILES && \
apt-get update && \
apt-get install -y python3 python3-pip python3-wheel cmake build-essential g++ castxml libglib2.0-dev libboost-all-dev python-pip && \
pip3 install zucchini-0.3.0-py2.py3-none-any.whl && \
pip uninstall -y wheel && \
pip install scikit-build && \
pip install pyLC3 && \
ldconfig && \
pip install parameterized

RUN cd $AUTOGRADER_ROOT && mkdir source && mkdir results
RUN find $AUTOGRADER_ROOT -name 'run_autograder' -exec chmod a+x {} +

CMD ["bash"]
9 changes: 9 additions & 0 deletions run_autograder
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# THIS FILE WAS GENERATED BY ZUCCHINI
set -e
set -o pipefail

cd /autograder/source
zucc grade-submission /autograder/submission \
| zucc gradescope bridge /autograder/submission_metadata.json \
> /autograder/results/results.json
Binary file added zucc_files/zucchini-0.3.0-py2.py3-none-any.whl
Binary file not shown.

0 comments on commit e866325

Please sign in to comment.