Big Data Research ›› 2021, Vol. 7 ›› Issue (1): 64-75.doi: 10.11959/j.issn.2096-0271.2021005

• Data-Driven Intelligent Software Development • Previous Articles     Next Articles

An approach to automatically building Docker images by using domain knowledge

Wei CHEN1,2, Hongjie YE1,2, Jiahong ZHOU1,2, Jun WEI1,2   

  1. 1 University of Chinese Academy of Sciences, Beijing 100190, China
    2 Institute of Software, Chinese Academy of Sciences, Beijing 100190, China
  • Online:2021-01-15 Published:2021-01-01
  • Supported by:
    The National Key Research and Development Program of China(2016YFB1000800);The National Natural Science Foundation of China(61732019)

Abstract:

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.

Key words: Docker, Dockerfile, knowledge graph, software package, system dependency

CLC Number: 

No Suggested Reading articles found!