CN109739616A - A kind of cloud platform container mirror image batch making method - Google Patents
A kind of cloud platform container mirror image batch making method Download PDFInfo
- Publication number
- CN109739616A CN109739616A CN201811480375.7A CN201811480375A CN109739616A CN 109739616 A CN109739616 A CN 109739616A CN 201811480375 A CN201811480375 A CN 201811480375A CN 109739616 A CN109739616 A CN 109739616A
- Authority
- CN
- China
- Prior art keywords
- mirror image
- docker
- container mirror
- script
- dockerfile
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Abstract
The present invention relates to field of cloud computer technology, especially a kind of cloud platform container mirror image batch making method.The method of the present invention includes steps: S1, creates three-level catalogue according to dependence, the first order is container mirror image title, and the second level is functional module title, and the third level is assembly container mirror image title;S2 creates cloud platform assembly container mirror image by script;S3, iso deployment system integrate docker service and the script and the configuration that are packaged above-mentioned production container mirror image;Above-mentioned script is executed in the final stage of deployment system, completes the production of container mirror image, and above-mentioned script is copied to local system.The present invention is solved to exist in existing cloud platform container mirror image and be limited by iso file size, the complicated problem of not conveniently scalable replacement, deployment test;It can be used for cloud platform container mirror image batch making.
Description
Technical field
The present invention relates to field of cloud computer technology, especially a kind of cloud platform container mirror image batch making method.
Background technique
Docker is a kind of container solution of open source, can rapidly be created in Linux system by container mirror image
An application program is built, can easily realize automatic deployment and the test installation of application program.Container mirror image is similar to virtual machine mirror
Picture can usually pull the creation that ware-house here completes container by Public Warehouse or privately owned warehouse.
Cloud platform component also advocates containerization at present, and the component of containerization cloud platform can be convenient exploitation, deployment and upgrading
Maintenance.Cloud platform calculates, other than storage and network resilience service, more and more usually using the framework of loose coupling in addition to providing
Function is supplied to user by way of cloud service;So the component of cloud platform is more and more.Such as openstack, only calculates, deposits
The component of storage and network just has more than 30.So how quickly to provide cloud platform container mirror image, also it is a problem to be solved.
The common solution of industry is that the container mirror image of all components of cloud platform is packed into iso at present, is then pacified
Dress deployment imports in ware-house here;The drawbacks of this mode is that iso file size has been more than dvd maximum capacity, can only be burnt at
It is installed in usb equipment;And inconvenience carries out upgrading replacement to container mirror image after installing, and increases cloud platform deployment test
Complexity.
Summary of the invention
Present invention solves the technical problem that being to provide a kind of cloud platform container mirror image batch making method;Solve existing cloud
Exist in platform container mirror image and is limited by iso file size, the complicated problem of not conveniently scalable replacement, deployment test.
The technical solution that the present invention solves above-mentioned technical problem is:
The method comprising steps of
S1 creates three-level catalogue according to dependence, and the first order is container mirror image title, and the second level is functional module name
Claim, the third level is assembly container mirror image title;
S2 creates cloud platform assembly container mirror image by script;
S3, iso deployment system integrate docker service and the script and the configuration that are packaged above-mentioned production container mirror image;In portion
The final stage of administration's system executes above-mentioned script, completes the production of container mirror image, and above-mentioned script is copied to local system.
There are a basic subdirectory, including dockerfile.j2 file and the function in the assembly container mirror image title
The repo file of all components under energy module, and the software source of iso is directed toward in the source repo;Remaining subdirectory only includes
Dockerfile.j2 file.
The dockerfile.j2 customizes dockerfile file using jinja2 template instruction, realizes distribution
The selection of version and the installation of software package;Release includes centos and ubuntu;The mounting means of software package can be binary system
Installation and source code installation.
The functional module title includes calculating, storage and network module.
It is described as follows by script creation cloud platform assembly container mirror step:
S21, three layers of catalogue being arranged are copied to odd-job catalogue, and searching work catalogue contains dockerfile.j2's
Dockerfile.j2 is converted into dockerfile file according to configuration by file;
S22, parameter module name is inputted according to script, filtering needs to make the module of container, then under the poll module
Subdirectory constructs the list of image class;If there is no input parameter, then the entire working directory of poll;The image class
It will record the path component dockerfile, container assemblies title, the sub-component of the component and the parent component of dependence;
S23, container mirror image is made according to the list dependence recurrence of images class.
The deployment system integrates docker service, refers to Squashfs installation docker service, and iso installation process
Middle starting docker is serviced, and the docker ware-house here serviced is arranged to the warehouse the docker catalogue of goal systems;
The goal systems, is the cloud platform system of iso deployment, and goal systems equally includes docker service;
The final stage in deployment system refers to the post stage of kickstart, at this stage perform script system
Make mirror image, the mirror image of module can be specifically made according to page selecting module.
The present invention is directed to the numerous situation of the framework of cloud platform loose coupling, assembly module, provides a cloud platform mirror
As batch making method, and the iso of a saving memory space is provided, provides convenience for O&M deployment.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is the flow chart of the method for the present invention;
Fig. 2 is invention components container mirror dependency graph.
Specific embodiment
As shown in FIGS. 1 and 2 the method for the present invention is as follows:
S10, creation three-level catalogue, the first order are container mirror image title, and the second level is functional module title, and the third level is group
Part container mirror image title;To be organized into tree-shaped dependence inheritance;
The entitled parent directory of functional module, including the most basic calculating of cloud platform, storage and three functional module of network module;
Have a basic subdirectory (i.e. Network-base in Fig. 2) under functional module title, including dockerfile.j2 file and
The repo file of all components under the functional module, and the software source of iso is directed toward in the source repo;Remaining subdirectory only includes
Dockerfile.j2 file.The jinja2 template instruction of dockerfile.j2, use customize dockerfile file, real
The selection of existing release and the installation of software package;Release includes centos and ubuntu;The mounting means of software package can be from
Binary system installation and source code installation.
It is as shown in Figure 2 to be organized into tree-shaped dependence inheritance.
S20, cloud platform assembly container mirror image is created by script.
Step specific as follows:
Three layers of catalogue are copied to odd-job catalogue by S21, setting, and searching work catalogue contains dockerfile.j2's
Dockerfile.j2 is converted into dockerfile file according to configuration by file;
S22, parameter module name is inputted according to script, filtering needs to make the module of container, then under the poll module
Catalogue, construct the list of image class;If there is no input parameter, then the entire working directory of poll.
The image class will record the path component dockerfile, container assemblies title, the sub-component of the component and
The parent component of dependence.
S23, container mirror image is made according to the list dependence recurrence of images class.
S30, iso deployment system integrate docker service and the script and the configuration that are packaged above-mentioned production container mirror image;?
The final stage of deployment system executes above-mentioned script, completes the production of container mirror image, and above-mentioned script is copied to local system.
Iso mirror image Squashfs installs docker service, ware-house here is arranged to the ware-house here of goal systems, installation process
The post stage perform script batch making container mirror image of kickstart.
Deployment system integrates docker service, refers to Squashfs installation docker service, and start in iso installation process
Docker is serviced, and the docker ware-house here serviced is arranged to the warehouse the docker catalogue of goal systems.
Goal systems, is the cloud platform system of iso deployment, and goal systems equally includes docker service.
In the final stage of deployment system, refer to that the post stage of kickstart executes above-mentioned script production mirror image, it can
Specifically to make the mirror image of module according to page selecting module.
Above-mentioned script is copied to cloud platform system, can be convenient to the new module image of addition or to container mirror image
Carry out upgrading replacement.
Claims (9)
1. a kind of cloud platform container mirror image batch making method, which is characterized in that the method comprising steps of
S1 creates three-level catalogue according to dependence, and the first order is container mirror image title, and the second level is functional module title, the
Three-level is assembly container mirror image title;
S2 creates cloud platform assembly container mirror image by script;
S3, iso deployment system integrate docker service and the script and the configuration that are packaged above-mentioned production container mirror image;It is in deployment
The final stage of system executes above-mentioned script, completes the production of container mirror image, and above-mentioned script is copied to local system.
2. according to the method described in claim 1, it is characterized by: having basis in the assembly container mirror image title
Catalogue, the repo file including all components under dockerfile.j2 file and the functional module, and iso is directed toward in the source repo
Software source;Remaining subdirectory only includes dockerfile.j2 file.
3. according to the method described in claim 2, it is characterized by: the dockerfile.j2 uses jinja2 template language
Speech customizes dockerfile file, realizes the selection of release and the installation of software package;Release include centos and
ubuntu;The mounting means of software package can be binary system installation and source code installation.
4. method according to claim 1,2 or 3, it is characterised in that: the functional module title includes calculating, storing
And network module.
5. method according to claim 1,2 or 3, it is characterised in that: described to create cloud platform assembly container by script
Mirror step is as follows:
S21, three layers of catalogue being arranged are copied to odd-job catalogue, and searching work catalogue contains the file of dockerfile.j2
Dockerfile.j2 is converted into dockerfile file according to configuration by folder;
S22, parameter module name is inputted according to script, filtering needs to make the module of container, then the specific item under the poll module
Record constructs the list of image class;If there is no input parameter, then the entire working directory of poll;The image class can be remembered
Record the path component dockerfile, container assemblies title, the sub-component of the component and the parent component of dependence;
S23, container mirror image is made according to the list dependence recurrence of images class.
6. according to the method described in claim 4, it is characterized by: described create cloud platform assembly container mirror image step by script
It is rapid as follows:
S21, three layers of catalogue being arranged are copied to odd-job catalogue, and searching work catalogue contains the file of dockerfile.j2
Dockerfile.j2 is converted into dockerfile file according to configuration by folder;
S22, parameter module name is inputted according to script, filtering needs to make the module of container, then the specific item under the poll module
Record constructs the list of image class;If there is no input parameter, then the entire working directory of poll;The image class can be remembered
Record the path component dockerfile, container assemblies title, the sub-component of the component and the parent component of dependence;
S23, container mirror image is made according to the list dependence recurrence of images class.
7. method according to claim 1,2 or 3, it is characterised in that:
The deployment system integrates docker service, refers to Squashfs installation docker service, and open in iso installation process
Dynamic docker is serviced, and the docker ware-house here serviced is arranged to the warehouse the docker catalogue of goal systems;
The goal systems, is the cloud platform system of iso deployment, and goal systems equally includes docker service;
The final stage in deployment system refers to the post stage of kickstart, and perform script makes mirror at this stage
Picture can specifically make the mirror image of module according to page selecting module.
8. according to the method described in claim 4, it is characterized by:
The deployment system integrates docker service, refers to Squashfs installation docker service, and open in iso installation process
Dynamic docker is serviced, and the docker ware-house here serviced is arranged to the warehouse the docker catalogue of goal systems;
The goal systems, is the cloud platform system of iso deployment, and goal systems equally includes docker service;
The final stage in deployment system refers to the post stage of kickstart, and perform script makes mirror at this stage
Picture can specifically make the mirror image of module according to page selecting module.
9. according to the method described in claim 6, it is characterized by:
The deployment system integrates docker service, refers to Squashfs installation docker service, and open in iso installation process
Dynamic docker is serviced, and the docker ware-house here serviced is arranged to the warehouse the docker catalogue of goal systems;
The goal systems, is the cloud platform system of iso deployment, and goal systems equally includes docker service;
The final stage in deployment system refers to the post stage of kickstart, and perform script makes mirror at this stage
Picture can specifically make the mirror image of module according to page selecting module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811480375.7A CN109739616A (en) | 2018-12-05 | 2018-12-05 | A kind of cloud platform container mirror image batch making method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811480375.7A CN109739616A (en) | 2018-12-05 | 2018-12-05 | A kind of cloud platform container mirror image batch making method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109739616A true CN109739616A (en) | 2019-05-10 |
Family
ID=66359164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811480375.7A Withdrawn CN109739616A (en) | 2018-12-05 | 2018-12-05 | A kind of cloud platform container mirror image batch making method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739616A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753088A (en) * | 2019-09-18 | 2020-02-04 | 平安科技(深圳)有限公司 | System deployment method and device |
CN110888655A (en) * | 2019-11-14 | 2020-03-17 | 中国民航信息网络股份有限公司 | Application publishing method and device |
CN111522627A (en) * | 2020-04-26 | 2020-08-11 | 杭州威佩网络科技有限公司 | Docker mirror image management method, device, equipment and medium |
CN111552495A (en) * | 2020-04-24 | 2020-08-18 | 格尔软件股份有限公司 | Method for realizing offline incremental updating of Docker container mirror image |
CN111651172A (en) * | 2020-05-28 | 2020-09-11 | 成都安恒信息技术有限公司 | Automatic generation method and system based on containerized ISO |
CN112217899A (en) * | 2020-10-19 | 2021-01-12 | 政采云有限公司 | Container troubleshooting system and method |
CN112379934A (en) * | 2019-07-29 | 2021-02-19 | 中移(苏州)软件技术有限公司 | Deployment method and device of cloud computing platform and storage medium |
CN113342359A (en) * | 2021-05-13 | 2021-09-03 | 烽火通信科技股份有限公司 | Intelligent generation method, device and equipment for container mirror image file and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317610A (en) * | 2014-10-11 | 2015-01-28 | 福建新大陆软件工程有限公司 | Method and device for automatic installation and deployment of hadoop platform |
CN106790483A (en) * | 2016-12-13 | 2017-05-31 | 武汉邮电科学研究院 | Hadoop group systems and fast construction method based on container technique |
CN107678756A (en) * | 2017-09-29 | 2018-02-09 | 千寻位置网络有限公司 | A kind of Web based on Docker applies a key dissemination method |
CN107959579A (en) * | 2016-10-14 | 2018-04-24 | 北京京东尚科信息技术有限公司 | The dispositions method and deployment system of multisystem |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
-
2018
- 2018-12-05 CN CN201811480375.7A patent/CN109739616A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317610A (en) * | 2014-10-11 | 2015-01-28 | 福建新大陆软件工程有限公司 | Method and device for automatic installation and deployment of hadoop platform |
CN107959579A (en) * | 2016-10-14 | 2018-04-24 | 北京京东尚科信息技术有限公司 | The dispositions method and deployment system of multisystem |
CN106790483A (en) * | 2016-12-13 | 2017-05-31 | 武汉邮电科学研究院 | Hadoop group systems and fast construction method based on container technique |
CN107678756A (en) * | 2017-09-29 | 2018-02-09 | 千寻位置网络有限公司 | A kind of Web based on Docker applies a key dissemination method |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
Non-Patent Citations (1)
Title |
---|
WEIXIN_34074740: "Docker(二):Dockerfile使用介绍", 《CSDN》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112379934A (en) * | 2019-07-29 | 2021-02-19 | 中移(苏州)软件技术有限公司 | Deployment method and device of cloud computing platform and storage medium |
CN112379934B (en) * | 2019-07-29 | 2022-12-13 | 中移(苏州)软件技术有限公司 | Deployment method and device of cloud computing platform and storage medium |
CN110753088A (en) * | 2019-09-18 | 2020-02-04 | 平安科技(深圳)有限公司 | System deployment method and device |
CN110753088B (en) * | 2019-09-18 | 2022-10-18 | 平安科技(深圳)有限公司 | System deployment method and device |
CN110888655A (en) * | 2019-11-14 | 2020-03-17 | 中国民航信息网络股份有限公司 | Application publishing method and device |
CN111552495A (en) * | 2020-04-24 | 2020-08-18 | 格尔软件股份有限公司 | Method for realizing offline incremental updating of Docker container mirror image |
CN111552495B (en) * | 2020-04-24 | 2023-04-28 | 格尔软件股份有限公司 | Method for implementing offline incremental update to Docker container mirror image |
CN111522627A (en) * | 2020-04-26 | 2020-08-11 | 杭州威佩网络科技有限公司 | Docker mirror image management method, device, equipment and medium |
CN111522627B (en) * | 2020-04-26 | 2023-11-28 | 杭州威佩网络科技有限公司 | Docker mirror image management method, device, equipment and medium |
CN111651172A (en) * | 2020-05-28 | 2020-09-11 | 成都安恒信息技术有限公司 | Automatic generation method and system based on containerized ISO |
CN112217899A (en) * | 2020-10-19 | 2021-01-12 | 政采云有限公司 | Container troubleshooting system and method |
CN113342359A (en) * | 2021-05-13 | 2021-09-03 | 烽火通信科技股份有限公司 | Intelligent generation method, device and equipment for container mirror image file and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739616A (en) | A kind of cloud platform container mirror image batch making method | |
CN108614701B (en) | Linux operating system customizing method and device | |
US10860339B2 (en) | Autonomous creation of new microservices and modification of existing microservices | |
US10540335B2 (en) | Solution to generate a scriptset for an automated database migration | |
US7765542B2 (en) | Method and system for describing and extracting application information | |
EP2562641B1 (en) | Software application porting system | |
CN111198744A (en) | Method for automatic application program containerization and mirror image backup release | |
CN106155651A (en) | The method and system that the automation of application version is issued and updated | |
CN112269640B (en) | Method for realizing life cycle management of container cloud component | |
CN109871213A (en) | OpenStack containerization system and method based on Domestic Platform | |
US20120260245A1 (en) | Model driven deployment of composite applications | |
CN109240716B (en) | Big data platform version management and rapid iterative deployment method and system | |
US10564961B1 (en) | Artifact report for cloud-based or on-premises environment/system infrastructure | |
CN109298868A (en) | Intelligent dynamic deployment and unloading method for mapping image data processing software | |
CN104572644A (en) | Database updating device and database updating method | |
CN111142881A (en) | Kubernets-based charts automation deployment system and method | |
CN104038819A (en) | Software upgrading system and method of digital set-top box | |
CN115756748A (en) | Cloud construction method based on containerized service management | |
CN103500109A (en) | Method and device for achieving file collection and software package automatic installation | |
CN108304184B (en) | Compiling method and device | |
CN111459530B (en) | Patching method, device and storage medium | |
CN106250160A (en) | A kind of Rapid transplant compiles the method for program of increasing income | |
JP6001199B2 (en) | Method for automatic conversion of package for taizen installation of android application and computer-readable recording medium therefor | |
CN103064722A (en) | Method and system for unified compiling of programs | |
CN107222355B (en) | Server upgrading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190510 |
|
WW01 | Invention patent application withdrawn after publication |