Normal OJ
How to
git clone --recurse-submodules https://github.com/Normal-OJ/Normal-OJ.git
cd Normal-OJ
git submodule foreach --recursive git checkout master
Push
For example, if you want to push Normal-OJ/Back-End
:
cd Back-End
git push
Pull
Pull all:
git submodule foreach --recursive git pull
Run Docker
Build images and start
docker-compose up -d
or if you want to rebuild the images
docker-compose up --build -d
Start
docker-compose start
Restart
docker-compose restart [service]
Stop
docker-compose stop
Down
docker-compose down
Setup
Sandbox
- in
.config/submission.json
:
- set
working_dir
to your desired location
- cd to
Sandbox
folder, run./build.sh
, this will build the images you need to compile and execute user's submission - that's all :P, i think