Wei CHEN, Hongjie YE, Jiahong ZHOU, et al. An approach to automatically building Docker images by using domain knowledge[J]. Big Data Research, 2021, 7(1): 2021005-1.
DOI:
Wei CHEN, Hongjie YE, Jiahong ZHOU, et al. An approach to automatically building Docker images by using domain knowledge[J]. Big Data Research, 2021, 7(1): 2021005-1. DOI: 10.11959/j.issn.2096-0271.2021005.
An approach to automatically building Docker images by using domain knowledge
A Dockerfile builds a Docker image by specifying how to construct a software system by downloading
installing and configuring software packages and their dependencies. However
manually writing a Dockerfile can be error-prone because system dependency resolution requires a lot of domain knowledge. Therefore
an approach to automating Dockerfile generation based on domain knowledge was proposed. The approach automatically parses Dockerfiles and extracts knowledge of building Docker images and stores the knowledge in a graph database. When generating new Dockerfiles
the system dependencies and their installation operations for the designated software based on the knowledge base were inferred. Experiments indicate that it is viable to automate Dockerfile generation for diversified software by inferring system dependencies and software package installations with the domain knowledge.
关键词
Keywords
references
EBERT C , GALLARDO G , HERNANTES J , et al . DevOps [J ] . IEEE Software , 2016 , 33 ( 3 ): 94 - 100 .
MERKEL D . Docker: lightweight Linux containers for consistent development and deploymen [J ] . Linux Journal , 2014 .
CITO J , SCHERMANN G , WITTERN J E , et al . An empirical analysis of the Docker container ecosystem on GitHub [C ] // 2017 IEEE/ACM 14th International Conference on Mining Software Repositories . Piscataway: IEEE Press , 2017 : 323 - 333 .
HENKEL J , BIRD C , LAHIRI S K , et al . Learning from, understanding, and supporting DevOps artifacts for Docker [C ] // The ACM/IEEE 42nd International Conference on Software Engineering . New York: ACM Press , 2020 : 38 - 49 .
WU Y W , ZHANG Y , WANG T , et al . Characterizing the occurrence of Dockerfile smells in open-source software: an empirical study [J ] . IEEE Access , 2020 , 8 : 34127 - 34139 .
HORTON E , PARNIN C . Gistable:evaluating the executability of Python code snippets on GitHub [C ] // 2018 IEEE International Conference on Software Maintenance and Evolution . Piscataway:IEEE Press , 2018 : 217 - 227 .
HORTON E , PARNIN C . DockerizeMe:automatic inference of environment dependencies for python code snippets [C ] // 2019 IEEE/ACM 41st International Conference on Software Engineering . New York: ACM Press , 2019 : 328 - 338 .
MELO L , WIESE I S , AMORIM M D . Using Docker to assist Q&A forum users [J ] . IEEE Transactions on Software Engineering , 2019 : 1 .
OSORIO M , BUIL-ARANDA C , VARGAS H . DockerPedia: a knowledge graph of Docker images [C ] // International Semantic Web Conference (P&D/Industry/BlueSky) . [S.l.:s.n.] , 2018 .
HUO D , NABRZYSKI J , VARDEMAN C F . Smart container: an ontology towards conceptualizing Docker [C ] // International Semantic Web Conference (Posters &Demos) . [S.l.:s.n.] , 2015 .
LU Z G , XU J W , WU Y W , et al . An empirical case study on the temporary file smell in Dockerfiles [J ] . IEEE Access , 2019 , 7 : 63650 - 63659 .
HASSAN F , RODRIGUEZ R , WANG X Y . RUDSEA: recommending updates of Dockerfiles via software environment analysis [C ] // The 33rd ACM/IEEE International Conference on Automated Software Engineering . New York: ACM Press , 2018 : 796 - 801 .