【HOJ系列】HOJ判题机部署
1、整体思路
(1)把HOJ的判题机源码,JudgeServer打包成jar,注意打包前需要将一些配置修改成自己的。
(2)按照官网的教程搭建,
git clone https://gitee.com/himitzh0730/hoj-deploy.git && cd hoj-deploy/src/judgeserver
当前文件夹为打包hoj-judgeserver镜像的相关文件,将这些文件复制到同一个文件夹内,然后打包JudgeServer (opens new window)(SpringBoot项目)成jar包也放到当前文件夹,之后执行以下命令进行打包成镜像。
执行:docker build -t hoj-judgeserver .