ojudge

A competitive programming judging platform written in OCaml
git clone git://git.laack.co/ojudge.git
Log | Files | Refs | README

commit fd022ad10e5bebfb39bae1cef0f0d6567023453e
parent 497cb72ef5a3b92aa2ab28e3e3979fd47db12e95
Author: Andrew Laack <andrew@laack.co>
Date:   Thu, 12 Nov 2026 22:27:15 -0600

Baseline container building code

Diffstat:
MREADME | 2+-
Aojudge/Containerfile | 2++
Mojudge/Makefile | 3+++
Mojudge/bin/main.ml | 3++-
4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -1,3 +1,3 @@ ojudge ====== -OCaml-based competitive programming judging platform using CGI, podman, and gVisor. +OCaml-based competitive programming judging platform using CGI and podman. diff --git a/ojudge/Containerfile b/ojudge/Containerfile @@ -0,0 +1,2 @@ +# bookwork-slim +FROM debian@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc diff --git a/ojudge/Makefile b/ojudge/Makefile @@ -1,2 +1,5 @@ run: dune exec ojudge + +build: + podman build . -t judge diff --git a/ojudge/bin/main.ml b/ojudge/bin/main.ml @@ -1 +1,2 @@ -let () = print_endline "Hello, World!" +let command = + "podman run --rm -it --network=none --memory=256MB --cpus 1 judge test"