基于Docker的前端發(fā)布平臺的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時間:2018-05-07 04:22
本文選題:Docker + 容器。 參考:《武漢郵電科學(xué)研究院》2016年碩士論文
【摘要】:隨著近年來互聯(lián)網(wǎng)的飛速發(fā)展以及接入互聯(lián)網(wǎng)的用戶飛速增長,每日網(wǎng)絡(luò)資源被訪問的數(shù)量是巨大的,而且隨著用戶的需求增加,頁面資源的更新的數(shù)量也是急劇增長的。互聯(lián)網(wǎng)的高速發(fā)展一方面人們享受互聯(lián)網(wǎng)帶來的便利與多樣性,另一方面也使得各互聯(lián)網(wǎng)公司的前端代碼的開發(fā)量也在增大,大量的前端編譯工作給企業(yè)的發(fā)展帶來了更多的挑戰(zhàn)。結(jié)合在集團(tuán)前端業(yè)務(wù)的發(fā)布中存在的前端開發(fā)人員任務(wù)繁重、集團(tuán)內(nèi)前端構(gòu)建種類繁多、前端資源發(fā)布流程復(fù)雜等問題,本文主要研究了前端發(fā)布平臺的整個研發(fā)流程。分析目前已有的集群編譯系統(tǒng),從多用戶角度分析需求,設(shè)計(jì)出滿足代碼資源統(tǒng)一接入,管理界面交互良好、滿足高并發(fā)、高可靠性的前端資源發(fā)布平臺。本平臺使用最近年來興起的Docker容器技術(shù)作為編譯集群的管理和編譯環(huán)境的基礎(chǔ),使用Gitlab進(jìn)行前端資源的代碼管理,根據(jù)Ruby On Rails框架開發(fā)出系統(tǒng)管理web應(yīng)用實(shí)現(xiàn)前端發(fā)布平臺的用戶交互、項(xiàng)目管理、提交管理、編譯機(jī)管理、編譯管理等管理功能。使用ruby開發(fā)前端資源構(gòu)建執(zhí)行腳本和docker集群的管理系統(tǒng),分別完成編譯構(gòu)建任務(wù)的執(zhí)行和Docker容器的自動檢測、啟動、刪除等操作。本平臺分兩部分實(shí)現(xiàn):首先是前端發(fā)布平臺的系統(tǒng)管理平臺部分,系統(tǒng)管理平臺是使用Ruby On Rails框架開發(fā)的web應(yīng)用主要實(shí)現(xiàn)代碼工程接入、代碼權(quán)限管理、編譯機(jī)管理、編譯管理等功能;其次是編譯機(jī)集群部分,編譯機(jī)集群使用的Docker容器技術(shù)進(jìn)行編譯構(gòu)建環(huán)境的創(chuàng)建以及Docker容器集群的管理。通過兩部分的結(jié)合,實(shí)現(xiàn)了一個接入簡單、規(guī)范化編譯構(gòu)建流程、自動編譯構(gòu)建、能滿足前端編譯任務(wù)的高并發(fā)高可靠性的統(tǒng)一前端發(fā)布系統(tǒng)。滿足了集團(tuán)前端資源編譯構(gòu)建規(guī)范化、減少了前端開發(fā)人員的工作量、自動化快速編譯構(gòu)建、構(gòu)建信息及時反饋的業(yè)務(wù)需求。
[Abstract]:With the rapid development of the Internet in recent years and the rapid growth of Internet users, the number of daily network resources visited is huge, and with the increasing demand of users, the number of page resources updating is also increasing rapidly. With the rapid development of the Internet, on the one hand, people enjoy the convenience and diversity brought by the Internet, on the other hand, the amount of front-end code development of various Internet companies is also increasing. A large number of front-end compilation work has brought more challenges to the development of enterprises. This paper mainly studies the whole research and development process of the front-end release platform, combining with the heavy task of front-end developers, the variety of front-end construction, the complexity of front-end resource release process and so on. By analyzing the existing cluster compiling system and analyzing the demand from the point of view of multi-user, a front-end resource publishing platform is designed to meet the requirements of unified access of code resources, good interaction of management interface, high concurrency and high reliability. This platform uses Docker container technology, which has emerged in recent years, as the foundation of compiling cluster management and compilation environment, and uses Gitlab to manage the code of front-end resources. According to the framework of Ruby on Rails, the system management web application is developed to realize the user interaction, project management, submission management, compiler management, compilation management and other management functions of the front-end publishing platform. Using ruby to develop front-end resources to build execution script and docker cluster management system, to complete the execution of compile and build task and the automatic detection, start and delete of Docker container respectively. This platform is divided into two parts: first, the system management platform of the front-end publishing platform, which is developed with Ruby on Rails framework, mainly realizes code engineering access, code authority management, compiler management. The second part is the cluster of compilers, the Docker container technology used in the cluster of compilers to build the environment and the management of the cluster of Docker containers. Through the combination of the two parts, a unified front-end publishing system with high concurrency and high reliability can be realized, which has the advantages of simple access, standardized compilation and construction flow, automatic compilation and construction. It satisfies the standardization of compilation and construction of group front-end resources, reduces the workload of front-end developers, automates the rapid compilation and construction, and constructs the business requirements of timely feedback of information.
【學(xué)位授予單位】:武漢郵電科學(xué)研究院
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2016
【分類號】:TP311.52
【參考文獻(xiàn)】
相關(guān)期刊論文 前7條
1 何震葦;嚴(yán)麗云;李慧云;張凌;陸鋼;;基于開源PaaS技術(shù)的互聯(lián)網(wǎng)業(yè)務(wù)平臺自動部署方案[J];電信科學(xué);2015年10期
2 張忠琳;黃炳良;;基于openstack云平臺的docker應(yīng)用[J];軟件;2014年11期
3 肖e,
本文編號:1855396
本文鏈接:http://sikaile.net/guanlilunwen/xiangmuguanli/1855396.html
最近更新
教材專著