Background. Containerization technologies are widely adopted in the DevOps workflow. The most commonly used one is Docker, which requires developers to define a specification file (Dockerfile) to build the image used for creating containers. There are several best practice rules for writing Dockerfiles, but the developers do not always follow them. Violations of such practices, known as Dockerfile smells, can negatively impact the reliability and the performance of Docker images. Previous studies showed that Dockerfile smells are widely diffused, and there is a lack of automatic tools that support developers in fixing them. However, it is still unclear what Dockerfile smells get fixed by developers and to what extent developers would be willing to fix smells in the first place. Objective. The aim of our exploratory study is twofold. First, we want to understand what Dockerfiles smells receive more attention from developers, i.e., are fixed more frequently in the history of open-source projects. Second, we want to check if developers are willing to accept changes aimed at fixing Dockerfile smells (e.g., generated by an automated tool), to understand if they care about them. Method. In the first part of the study, we will evaluate the survivability of Dockerfile smells on a state-of-the-art dataset composed of 9.4M unique Dockerfiles. We rely on a state-of-the-art tool (hadolint) for detecting which Dockerfile smells disappear during the evolution of Dockerfiles, and we will manually analyze a large sample of such cases to understand if developers fixed them and if they were aware of the smell. In the second part, we will detect smelly Dockerfiles on a set of GitHub projects, and we will use a rule-based tool to automatically fix them. Finally, we will open pull requests proposing the modifications to developers, and we will quantitatively and qualitatively evaluate their outcome.
翻译:DevOps 工作流程中广泛采用集装箱化技术。 最常用的是 Docker, 它要求开发者定义一个规格文件( Dockerfile), 以构建用于创建容器的图像。 有几种写 Docker 文件的最佳做法规则, 但开发者并不总是遵循这些规则 。 违反这种称为 Dockerfile 的习惯, 可能会对Docker 图像的可靠性和性能产生消极影响。 先前的研究显示, Dockerfile 气味被广泛散布, 并且缺乏自动工具支持开发者修复它们。 但是, 仍然不清楚 Dockerf 闻起来是由开发者自动固定的, 以及开发者愿意在第一个地方修补气味。 目标。 首先, 我们想了解 Dockerferfer 闻起来是什么, 在开源项目史上更经常地固定的。 我们想要检查开发者是否愿意接受旨在修整 Dockkerfile 的气味化( 例如, 我们用一个自动工具生成的), 来了解他们是否愿意在第一个地方修整它们。 。 Dodalferalfer fell 。 Do drealferalferalfile 里, 我们将会评估他们是否关心它们。