DRIVE:Dockerfile 规则挖掘与违规检测
DRIVE: Dockerfile Rule Mining and Violation Detection
AI总结:
本文提出 DRIVE 方法,通过解析 Dockerfile 并利用序列模式挖掘提取隐式规则,进而检测违规行为,识别出 34 条语义规则和 19 条句法规则,实验验证了其有效性。
摘要:
Dockerfile 定义了一组用于构建 Docker 镜像的指令,这些镜像随后可被实例化以支持容器化应用程序。近期研究揭示了 Dockerfile 中存在大量质量问题。在本文中,我们提出了一种新颖的方法 DRIVE(Dockerfile 规则挖掘与违规检测),用于挖掘 Dockerfile 中的隐式规则并检测潜在的违规行为。DRIVE 首先解析 Dockerfile 并将其转换为中间表示形式。然后,它利用一种高效的序列模式挖掘算法来提取潜在模式。通过基于启发式的缩减和适度的人工干预,识别出潜在规则,这些规则随后可用于检测 Dockerfile 的潜在违规行为。DRIVE 识别出 34 条语义规则和 19 条句法规则,其中包括 9 条此前未被报道的新语义规则。在真实世界 Dockerfile 上的大量实验证明了我们方法的有效性。
英文摘要:
A Dockerfile defines a set of instructions to build Docker images, which can then be instantiated to support containerized applications. Recent studies have revealed a considerable amount of quality issues with Dockerfiles. In this paper, we propose a novel approach DRIVE (Dockerfiles Rule mIning and Violation dEtection) to mine implicit rules and detect potential violations of such rules in Dockerfiles. DRIVE firstly parses Dockerfiles and transforms them to an intermediate representation. It then leverages an efficient sequential pattern mining algorithm to extract potential patterns. With heuristic-based reduction and moderate human intervention, potential rules are identified, which can then be utilized to detect potential violations of Dockerfiles. DRIVE identifies 34 semantic rules and 19 syntactic rules including 9 new semantic rules which have not been reported elsewhere. Extensive experiments on real-world Dockerfiles demonstrate the efficacy of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。