-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes * ADD blog 1 * FIX markdown to jsx translation * FIX optomize dockerfiles and fix animations
- Loading branch information
Showing
22 changed files
with
482 additions
and
182 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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
from flask_caching import Cache | ||
|
||
cache = Cache(config={"CACHE_TYPE": "redis"}) | ||
|
||
|
||
@cache.cached(timeout=1) | ||
def cache_health(): | ||
pass |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,71 @@ | ||
# Anubis Autograder | ||
|
||
![](../img/anubis-icon-1.png) | ||
|
||
## Elevator Pitch | ||
|
||
At its core, Anubis is a tool to give students live feedback from their homework | ||
assignments | ||
while they are working on them. Using [Github Classrooms](https://classroom.github.com/), | ||
each student gets their | ||
own repo from a template | ||
for each homework assignment. The way students then submit their work | ||
is simply by pushing their work to their repo before the deadline. Students can | ||
then push, and therefore submit as many times as | ||
they would like before the deadline. | ||
|
||
## Assignment structure | ||
|
||
When a student pushes to their assignment repo, a job is launched on the Anubis | ||
cluster. That job will build | ||
their repo, run tests on the results, and store the results in a database. | ||
|
||
Students can then navigate to the Anubis website, where | ||
they will sign in through NYU SSO. | ||
From there, | ||
they will be able to see all the current and past assignments, | ||
and all of their submissions. They are able | ||
to view the results of the build and tests for each submission. | ||
There they can request a regrade, | ||
there by launching a new submission pipeline. While the submission | ||
still being processed, the website will poll | ||
the backend for updates. In this, the website will be constantly | ||
updating while the submission is being | ||
processed, giving a live and interactive feel to the site. Once | ||
a submission is processed Anubis will show | ||
the students logs from their tests, and builds along with which | ||
tests passed and which failed. | ||
|
||
![alt autogade-results](../img/autograde-results.png) | ||
|
||
## Anubis Cloud IDEs | ||
|
||
New in version v2.2.0, there is now the Anubis Cloud IDE. Using some | ||
kubernetes magic, we are able to | ||
host [theia](https://theia-ide.org/) servers for individual students. | ||
These are essentially | ||
VSCode instances | ||
that students can access in the browser. What makes these so powerful | ||
is that students can access a terminal | ||
and type commands right into a bash shell which will be run in the | ||
remote container. With this setup students | ||
have access to a fully insulated and prebuilt linux | ||
environment at a click of a button. These environments are easily customizable | ||
for the needs of the class or even individual assignments. Because these | ||
IDE servers are light weight docker containers we can support | ||
many more students than if we used VMs. There are ~130 students in the Intro | ||
to OS course in spring of 2021, and we could support all of them | ||
using IDEs at the same time while still processing all the submissions that | ||
come through. | ||
|
||
As we are giving students access to a terminal in the cloud, we must also lock | ||
down their environment. All student IDEs are limited in the RAM, CPU, storage, | ||
and networking. From the IDEs, students are only able to connect to Github to | ||
submit their work. | ||
|
||
![alt anubis-ide](../img/theia-fullscreen.png) | ||
|
||
|
||
|
||
> Does any of this sound appealing to you? Reach out to us to see if Anubis is | ||
something that can benefit your class! |
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
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
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FROM node:alpine | ||
|
||
WORKDIR /opt/app | ||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
# install dependencies | ||
# add program for serving static | ||
# build prod | ||
# delete fluff | ||
RUN apk add --update --no-cache curl && yarn \ | ||
&& yarn global add serve | ||
RUN yarn | ||
COPY . . | ||
RUN yarn run build \ | ||
&& rm -rf node_modules src public package.json yarn.lock | ||
|
||
|
||
FROM node:alpine | ||
WORKDIR /opt/app | ||
RUN apk add --update --no-cache curl && yarn global add serve | ||
COPY --from=0 /opt/app/build /opt/app/build | ||
|
||
|
||
CMD serve -s build -l 3000 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Oops, something went wrong.