Skip to content

Fetch the code, compile and run it, and return the result.

License

Notifications You must be signed in to change notification settings

SDUOJ/sduoj-judger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3990305 · Oct 22, 2022

History

44 Commits
Oct 22, 2022
Oct 22, 2022
Feb 21, 2022
Feb 21, 2022
Feb 21, 2022
Mar 20, 2022
Feb 21, 2022
Oct 22, 2022
Nov 24, 2020
Nov 24, 2020
Oct 22, 2022
Feb 21, 2022
Mar 11, 2022
Feb 21, 2022
Feb 21, 2022
Feb 21, 2022

Repository files navigation

sduoj-judger

Fetch the code, compile and run it, and return the result.

Get started

Make sure Docker v19.03.7 or higher version is installed.

Run

  • pull image:
docker pull registry.cn-beijing.aliyuncs.com/sduoj/sduoj-judger
  • Run it:
docker run -di \
  --name=sduoj-judger \
  --pids-limit=1024 \
  --cpuset-cpus="0" \
  --cpu-shares=100 \
  --memory=1024M \
  --memory-swap=1024M \
  -e NACOS_ADDR=127.0.0.1:8848 \
  -e ACTIVE=prod \
  registry.cn-beijing.aliyuncs.com/sduoj/sduoj-judger
  • Docker parms:
    • --pids-limit: the limit of process in container
    • --cpuset-cpus: the settings of cpu
    • --cpu-shares: the relative weight of cpu
    • NACOS_ADDR: the host of Nacos
    • ACTIVE: dev or prod

About

Fetch the code, compile and run it, and return the result.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published