[1]韦俊宇 王宇英.基于Docker的Online Judge容器设计与实现[J].大众科技,2022,24(09):14-17.
 Design and Implementation of Online Judge Container Based on Docker[J].Popular Science & Technology,2022,24(09):14-17.
点击复制

基于Docker的Online Judge容器设计与实现()
分享到:

《大众科技》[ISSN:1008-1151/CN:45-1235/N]

卷:
24
期数:
2022年09
页码:
14-17
栏目:
信息技术与通信
出版日期:
2022-09-20

文章信息/Info

Title:
Design and Implementation of Online Judge Container Based on Docker
作者:
韦俊宇 王宇英 
(桂林电子科技大学计算机与信息安全学院,广西 桂林 541004)
关键词:
在线判题容器Online JudgeDocker
Keywords:
Online Judge container Online Judge Docker
文献标志码:
A
摘要:
在LeetCode、ACWing等各大Online Judge网站中,每时每刻都有无数的代码在编译运行。但这些网站上提交的代码都是为了解决该网站题库中给定的某一道算法题,不仅规定了程序的标准输入输出,还限制了运行时长和内存占用,有一定局限性。在新冠疫情期间,开设计算机课程的大学也急需搭建符合学校教学需求的Online Judge以正常开展线上课程。针对上述两个问题,文章设计并实现了基于Docker技术的Online Judge容器。其能编译程序源代码和运行程序二进制文件,期间能动态地更改程序的标准输入、运行时长与内存占用,并对容器作了一定的防护,具有一定的安全性,还易于分布式拓展。
Abstract:
In major Online Judge websites such as LeetCode and ACWing, countless codes are compiled and run all the time. However, the code submitted on these websites is to solve an algorithm problem given in the websites question bank. It not only stipulates the standard input and output of the program, but also limits the running time and memory usage, which has certain limitations. During the COVID-19, universities offering computer courses also urgently need to build Online Judge that meets our teaching needs in order to run online courses normally. Aiming at the above two problems, this paper designs and implements an Online Judge container based on Docker technology. It can compile the source code of the program and run the binary file of the program, dynamically change the standard input, running time and memory occupation of the program, and protect the container to a certain extent. It has certain security, and is easy to expand distributed.

参考文献/References:

[1] 蔡崇超. 基于Web的在线判题系统设计与实现[J]. 软件导刊,2016,15(3): 107-109. [2] 欧阳佳,肖茵茵,刘少鹏,等. 基于在线判题系统的程序设计课程群教学研究[J]. 信息与电脑(理论版),2021,33(12): 228-231. [3] 邱建新. 基于Docker容器技术的Linux在线实验环境设计[J]. 信息技术,2022(2): 48-52,58. [4] 李定才,瞿绍军,胡争,等. 基于Windows的在线判题系统的安全性研究[J]. 计算机技术与发展,2011,21(9): 204-207. [5] 张彩珍,常元,康斌龙,等. 一种抵御流量型DDoS攻击的告警阈值系统设计[J]. 电子设计工程,2021,29(22): 24-27,32. [6] Dean J, Ghemawat S. MapReduce: Simplified data processing on large clusters[C]. Proc of OSDI 2004, USENIX Association, 2004. [7] Reynolds D A, Quatieri T F, Dunn R B. Speaker verification using adapted Gaussian mixture models[J]. Digital Signal Processing, 2000, 10(1): 19-41. [8] Gutiérrez G J J, González H M. Prioritizing remote procedure calls in Ada distributed systems[J]. ACM SIGAda Ada Letters, 1999, 19(2): 67-72.

备注/Memo

备注/Memo:
【收稿日期】2022-06-28 【基金项目】广西区大学生创新创业训练计划立项项目(202010595168、202110595158)。 【作者简介】韦俊宇(2001-),男,桂林电子科技大学计算机与信息安全学院学生。 【通信作者】王宇英,女,桂林电子科技大学计算机与信息安全学院正高级实验师,硕士,研究方向为高等教育管理。
更新日期/Last Update: 2022-10-14