forked from DMOJ/judge-server
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
11,258 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM dmoj/runtimes-tier3 | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/mcpt/wlmoj-judge" | ||
|
||
# Keep in a seperate RUN command as this should always have a cache hit while the rest of the image may not | ||
RUN apt-get update && \ | ||
apt-get -y --no-install-recommends install make cmake git gcc-multilib git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN cd /tmp/ && git clone https://github.com/justinmeza/lci && \ | ||
cd lci && \ | ||
cmake . && \ | ||
make && \ | ||
make install && \ | ||
rm -rf /tmp/lci/ && \ | ||
cd /tmp/ && \ | ||
git clone --recursive https://github.com/mcpt/wlmoj-judge /judge && \ | ||
cd /judge && \ | ||
python3 -m venv --prompt=DMOJ /env && \ | ||
/env/bin/pip3 install cython setuptools && \ | ||
/env/bin/pip3 install -e . && \ | ||
/env/bin/python3 setup.py develop && \ | ||
HOME=~judge . ~judge/.profile && \ | ||
runuser -u judge -w PATH -- /env/bin/dmoj-autoconf -V > /judge-runtime-paths.yml && \ | ||
echo ' crt_x86_in_lib32: true' >> /judge-runtime-paths.yml | ||
|
||
COPY .docker/wlmoj/config.yml /config.yml | ||
|
||
ENTRYPOINT ["/usr/bin/tini", "--", "/judge/.docker/entry"] |
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 @@ | ||
problem_storage_root: | ||
- /problems/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from dmoj.executors.script_executor import ScriptExecutor | ||
|
||
|
||
class Executor(ScriptExecutor): | ||
name = 'LOLCODE' | ||
ext = '.lic' | ||
command = 'lci' | ||
command_paths = ['lci'] | ||
|
||
test_program = """\ | ||
HAI 1.2 | ||
CAN HAS STDIO? | ||
I HAS A INPUT | ||
GIMMEH INPUT | ||
VISIBLE INPUT | ||
KTHXBYE | ||
""" | ||
|
||
def get_cmdline(self, **kwargs): | ||
return ['lci', self._code] |
Oops, something went wrong.