-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of base autograder image
- Loading branch information
0 parents
commit e866325
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.