Skip to content

Commit

Permalink
download yq with link
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyCh3n committed Oct 2, 2021
1 parent 840709e commit bb79328
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img src="https://autolabproject.com/images/autolab_red.svg" width="380px" height="100px">
</a>

This program create the files which [Autolab](https://autolabproject.com/)'s `autograde` needed for [NTU BME Computer Programming Course](https://nol.ntu.edu.tw/nol/coursesearch/print_table.php?course_id=611%2018300&class=&dpt_code=6110&ser_no=12565&semester=110-1&lang=CH). File tree is as follow,
This program ([ga](https://github.com/WesleyCh3n/NTUBME-Autograde/blob/main/src/ga)) create the files which [Autolab](https://autolabproject.com/)'s `autograde` needed for [NTU BME Computer Programming Course](https://nol.ntu.edu.tw/nol/coursesearch/print_table.php?course_id=611%2018300&class=&dpt_code=6110&ser_no=12565&semester=110-1&lang=CH). File tree is as follow,
```
├───autograde-Makefile
├───autograde.tar
Expand All @@ -17,11 +17,11 @@ This program create the files which [Autolab](https://autolabproject.com/)'s `au
├───answers.yml
```

You can walk through `autograde-Makefile` to have the overview of whole concept.
You can walk through [`autograde-Makefile`](https://github.com/WesleyCh3n/NTUBME-Autograde/blob/main/src/Makefile) to have the overview of whole concept.

`score.py` is the main code to grade student score.
[`score.py`](https://github.com/WesleyCh3n/NTUBME-Autograde/blob/main/src/score.py) is the main code to grade student score.

`gtest.cpp` is the [Google Test](https://github.com/google/googletest) code.
[`gtest.cpp`](https://github.com/WesleyCh3n/NTUBME-Autograde/blob/main/src/gtest.cpp) is the [Google Test](https://github.com/google/googletest) code.


## Prerequisites
Expand Down Expand Up @@ -79,12 +79,12 @@ In detail:
```

### YAML Parameters
| Parameters | Info | Format | Exmaple |
| :----: | :-- | :-- | :-- |
| **Autograde** | Top level | | |
| **Homework** | HW number | number+problem | `6c` |
| **AdditionalTar** | Additional files | file1, file2 | `[file1, file2]` |
| **VariableType** | The tatal type of variables in this question. | use list to store types | `[float, double, int]` |
| Parameters | Info | Format | Exmaple |
| :----: | :-- | :-- | :-- |
| **Autograde** | Top level | | |
| **Homework** | HW number | number+problem | `6c` |
| **AdditionalTar** | Additional files | file1, file2 | `[file1, file2]` |
| **VariableType** | The tatal type of answer variables in this question. | use list to store types | `[float, double, int]` |

**Google Test field** (`Test:`): using yaml [list](https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html) syntax to store the lists of tests also lists of logical operation each test. Remember not to write unnecessary `-`, that may loss some of tests.

Expand Down
8 changes: 5 additions & 3 deletions src/Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ FROM debian:stable-slim

RUN apt-get update && \
apt install jq curl -y
ADD ./yq_linux_amd64 /usr/bin/yq
ADD ./ga /usr/bin/ga
RUN chmod +x /usr/bin/yq
# ADD ./yq_linux_amd64 /usr/bin/yq
# RUN chmod +x /usr/bin/yq

RUN curl -fLo /usr/bin/yq https://github.com/mikefarah/yq/releases/download/3.4.0/rq_linux_amd64 && chmod +x /usr/bin/yq
ADD ../ga /usr/bin/ga
RUN chmod +x /usr/bin/ga

WORKDIR /workdir/
Expand Down
File renamed without changes.

0 comments on commit bb79328

Please sign in to comment.