{"title":"使用ANTLR将TOSCA转换为docker-compose YAML文件","authors":"Kitti Klinbua, W. Vatanawood","doi":"10.1109/ICSESS.2017.8342884","DOIUrl":null,"url":null,"abstract":"In recent years, Docker is rapidly a powerful and better efficient deployment environment in software as a service (SaaS) development. Using Docker in a software project could solve many former DevOps problems and increase quality of the project. The Docker-Compose is an official tool that helps manage Docker containers by defining the appropriate SaaS configuration in a docker-compose YAML file. As it is not easy for newbies of Docker to write a docker-compose YAML file due to the complicated parameters of a large compounded services' configurations, the TOCSA diagramming should alternatively provide several service templates which are more practical and adequately descriptive to the common SaaS designers. In this paper, we encourage and provide the SaaS designer a set of predefined TOSCA service templates to configure the target SaaS project. Then, we propose a mean to translate the configured TOSCA diagram into docker-compose YAML file using ANTLR. The resulting docker-compose YAML file could be readily exploited in Docker environment.","PeriodicalId":179815,"journal":{"name":"2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":"{\"title\":\"Translating TOSCA into docker-compose YAML file using ANTLR\",\"authors\":\"Kitti Klinbua, W. Vatanawood\",\"doi\":\"10.1109/ICSESS.2017.8342884\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In recent years, Docker is rapidly a powerful and better efficient deployment environment in software as a service (SaaS) development. Using Docker in a software project could solve many former DevOps problems and increase quality of the project. The Docker-Compose is an official tool that helps manage Docker containers by defining the appropriate SaaS configuration in a docker-compose YAML file. As it is not easy for newbies of Docker to write a docker-compose YAML file due to the complicated parameters of a large compounded services' configurations, the TOCSA diagramming should alternatively provide several service templates which are more practical and adequately descriptive to the common SaaS designers. In this paper, we encourage and provide the SaaS designer a set of predefined TOSCA service templates to configure the target SaaS project. Then, we propose a mean to translate the configured TOSCA diagram into docker-compose YAML file using ANTLR. The resulting docker-compose YAML file could be readily exploited in Docker environment.\",\"PeriodicalId\":179815,\"journal\":{\"name\":\"2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2017-11-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"6\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICSESS.2017.8342884\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSESS.2017.8342884","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6
摘要
近年来,Docker在SaaS (software as a service)开发中迅速成为一个功能强大、效率更高的部署环境。在软件项目中使用Docker可以解决许多以前的DevOps问题,并提高项目质量。Docker- compose是一个官方工具,它通过在Docker- compose YAML文件中定义适当的SaaS配置来帮助管理Docker容器。由于大型复合服务配置的参数复杂,对于Docker新手来说,编写一个由Docker组成的YAML文件并不容易,因此TOCSA图应该提供一些对普通SaaS设计人员更实用和充分描述的服务模板。在本文中,我们鼓励并为SaaS设计人员提供一组预定义的TOSCA服务模板来配置目标SaaS项目。然后,我们提出了一种使用ANTLR将配置的TOSCA图转换为由docker组成的YAML文件的方法。生成的Docker -compose YAML文件可以很容易地在Docker环境中使用。
Translating TOSCA into docker-compose YAML file using ANTLR
In recent years, Docker is rapidly a powerful and better efficient deployment environment in software as a service (SaaS) development. Using Docker in a software project could solve many former DevOps problems and increase quality of the project. The Docker-Compose is an official tool that helps manage Docker containers by defining the appropriate SaaS configuration in a docker-compose YAML file. As it is not easy for newbies of Docker to write a docker-compose YAML file due to the complicated parameters of a large compounded services' configurations, the TOCSA diagramming should alternatively provide several service templates which are more practical and adequately descriptive to the common SaaS designers. In this paper, we encourage and provide the SaaS designer a set of predefined TOSCA service templates to configure the target SaaS project. Then, we propose a mean to translate the configured TOSCA diagram into docker-compose YAML file using ANTLR. The resulting docker-compose YAML file could be readily exploited in Docker environment.