File tree Expand file tree Collapse file tree 11 files changed +74
-0
lines changed Expand file tree Collapse file tree 11 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ # judge-workers
2+
3+ This is one of the component of Coding Blocke Online Code Judge v2
4+
5+ ## Workers
6+
7+ Workers are docker containers that run the code. They have simple requirements
8+
9+ - They have one compile.sh file that compiles (if required) the source
10+ - They have a run.sh file that runs the source or the binary
11+
12+ ## Composition
13+
14+ All workers are built on top of [ alpine linux] ( https://alpinelinux.org/ ) 3.6
15+
16+ ## Supported Languages
17+
18+ Currently we have following images -
19+
20+ - [ c] ( containers/c )
21+ - [ cpp] ( containers/cpp )
22+ - [ java8] ( containers/java8 )
23+ - [ nodejs6] ( containers/nodejs6 )
24+ - [ nodejs] ( containers/nodejs8 )
25+ - [ py2] ( containers/py2 )
26+
Original file line number Diff line number Diff line change 1+ FROM alpine:3.6
2+
3+ RUN apk add --no-cache python3 bash
4+ COPY ./compile.sh /bin/compile.sh
5+ COPY ./run.sh /bin/run.sh
6+ RUN chmod 777 /bin/compile.sh; \
7+ chmod 777 /bin/run.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ python3 script.py < run.stdin 1> run.stdout 2> run.stderr
Original file line number Diff line number Diff line change 1+ World
Original file line number Diff line number Diff line change 1+ World
Original file line number Diff line number Diff line change 1+ Hello World
Original file line number Diff line number Diff line change 1+ inp = input ()
2+ print ("Hello " + inp )
Original file line number Diff line number Diff line change 1+ inp = input ()
2+ print ("Hello " + inp )
You can’t perform that action at this time.
0 commit comments