CN110928643A - Electric power simulation system deployment method and device based on containerization - Google Patents

Electric power simulation system deployment method and device based on containerization Download PDF

Info

Publication number
CN110928643A
CN110928643A CN201911120208.6A CN201911120208A CN110928643A CN 110928643 A CN110928643 A CN 110928643A CN 201911120208 A CN201911120208 A CN 201911120208A CN 110928643 A CN110928643 A CN 110928643A
Authority
CN
China
Prior art keywords
mirror image
simulation system
container
containerization
power simulation
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.)
Pending
Application number
CN201911120208.6A
Other languages
Chinese (zh)
Inventor
尹建林
王金
杨剑梅
席瑞
王维洲
杨晓军
林春龙
范玉昆
赵喜兰
王耿
史娇阳
高峰
赵成杰
刘海潮
王梅琨
夏常明
盖晓平
王拓
史铭锐
成煜
郑文夙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guodian Nanrui Science And Technology Co Ltd Beijing Energy Science And Technology Branch
TIANSHUI POWER SUPPLY Co OF STATE GRID GANSU ELECTRIC POWER Co
Beijing Kedong Electric Power Control System Co Ltd
State Grid Gansu Electric Power Co Ltd
Lanzhou University of Technology
Original Assignee
Guodian Nanrui Science And Technology Co Ltd Beijing Energy Science And Technology Branch
TIANSHUI POWER SUPPLY Co OF STATE GRID GANSU ELECTRIC POWER Co
Beijing Kedong Electric Power Control System Co Ltd
State Grid Gansu Electric Power Co Ltd
Lanzhou University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guodian Nanrui Science And Technology Co Ltd Beijing Energy Science And Technology Branch, TIANSHUI POWER SUPPLY Co OF STATE GRID GANSU ELECTRIC POWER Co, Beijing Kedong Electric Power Control System Co Ltd, State Grid Gansu Electric Power Co Ltd, Lanzhou University of Technology filed Critical Guodian Nanrui Science And Technology Co Ltd Beijing Energy Science And Technology Branch
Priority to CN201911120208.6A priority Critical patent/CN110928643A/en
Publication of CN110928643A publication Critical patent/CN110928643A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a containerization-based electric power simulation system deployment method, which comprises the following steps: constructing a containerization description file of the power simulation system; generating a container mirror image of the power simulation system based on the containerization description file; deploying the container mirror image and the mirror image standard starting environment to a target computer; and starting the container mirror by a standard mirror starting mode. The invention further provides a containerization-based power simulation system deployment device, which comprises a containerization description module, a container mirror image generation module, a container mirror image deployment module and a container mirror image starting module. Compared with the prior virtual machine technical method which uses more virtual machines, the method has the advantages of lighter deployment, less required computer resources, higher sealing stability, quicker starting of the power simulation system, parallel starting and use of the power simulation system which uses less resources and the like.

Description

Electric power simulation system deployment method and device based on containerization
Technical Field
The invention relates to an implementation method for packaging a power simulation system into a standard Container (Container) and deploying the power simulation system to a target computer, belonging to the field of virtualization technology of information technology. The method is mainly applied to the rapid and efficient deployment process of the power simulation system on the target computer and the use process of rapid and parallel starting of the power simulation system.
Background
Since the system environment of the target computer to be deployed cannot meet the operating environment required by the power simulation system, the operating environment required by the power simulation system needs to be virtualized when the power simulation system is deployed. Currently, most of the technical means adopted to solve the problem are Virtual Machine (Virtual Machine) technology, which functionally solves the problem of operating environment, but has the problems of more computer resources required for deployment, slower system startup, difficulty in parallel startup and use, and the like.
Disclosure of Invention
The present invention is directed to overcome the technical defects of the prior art, solve the above problems, and provide a containerization-based method and apparatus for deploying an electric power simulation system.
The invention adopts the following technical scheme: a containerization-based electric power simulation system deployment method is characterized by comprising the following steps:
constructing a containerization description file of the power simulation system; generating a container mirror image of the power simulation system based on the containerization description file; deploying the container mirror image and the mirror image standard starting environment to a target computer; and starting the container mirror by a standard mirror starting mode.
As a preferred embodiment, the generating a container image of the power simulation system based on the containerization description file specifically includes: and executing a mirror image generation instruction in a corresponding directory by using a terminal in a development environment, and automatically generating a container mirror image of the power simulation system according to the containerization description file.
As a preferred embodiment, the deploying the container mirror and mirror standard boot environment to a target computer implementation comprises: copying the generated container mirror image of the power simulation system to a corresponding directory of a target computer, and deploying a mirror image standard starting environment according to the target computer system environment.
As a preferred embodiment, the starting of the container image in the standard image starting manner specifically includes: and constructing a container mirror image starting configuration file, and starting the container mirror image in a standard mirror image starting mode according to the configuration file, so that the power simulation system completely runs on a target computer.
As a preferred embodiment, the building a container image startup configuration file includes: the configuration file adopts a YAML file format, and describes the packaging association relationship of the container mirror image, a host port and a container mirror image packaging port used by the container mirror image, an API (application programming interface) package used by a starting environment, the content type of the described object, the name of the content object related to the container mirror image, and the configuration content of the description parameters of the content object.
As a preferred embodiment, the starting of the container image according to the configuration file by the standard image starting method specifically includes: and executing a power simulation system starting instruction packaged by the container mirror image in a corresponding directory by using a terminal in the target computer system environment, and automatically starting the container mirror image according to the container mirror image starting configuration file.
The invention further provides a containerization-based power simulation system deployment device, which comprises a containerization description module, a container mirror image generation module, a container mirror image deployment module and a container mirror image starting module, wherein the output end of the containerization description module is connected with the input end of the container mirror image generation module, the output end of the container mirror image generation module is connected with the input end of the container mirror image deployment module, and the output end of the container mirror image deployment module is connected with the input end of the container mirror image starting module.
In a preferred embodiment, the containerization description module is used for constructing a containerization description file of the power simulation system; the container mirror image generation module is used for executing a mirror image generation instruction in a corresponding directory by using a terminal in a development environment and automatically generating a container mirror image of the power simulation system according to the containerization description file.
As a preferred embodiment, the container image deployment module is configured to copy the generated container image of the power simulation system to a corresponding directory of the target computer, and deploy an image standard boot environment according to a target computer system environment.
As a preferred embodiment, the container image starting module is configured to construct a container image starting configuration file, and start a container image in a standard image starting manner according to the configuration file, so that the power simulation system runs on the target computer completely.
The invention achieves the following beneficial effects: the invention provides a method and a device for deploying a containerization-based electric power simulation system, aiming at the technical problems of more computer resources required for deploying, slower system starting, difficulty in parallel starting and use and the like in the traditional virtualization means, compared with the prior virtual machine technical method with more resources, the method has the advantages of lighter deployment, less computer resources, higher sealing stability, quicker starting of the electric power simulation system, capability of supporting parallel starting and use of the electric power simulation system by utilizing fewer resources and the like.
Drawings
Fig. 1 is a flow chart of a containerization-based power simulation system deployment method of the present invention.
FIG. 2 is a topology diagram of the operation of a containerization-based power simulation system deployment device of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
As shown in fig. 1, the present invention provides a method for deploying a containerization-based power simulation system, comprising the following steps: constructing a containerization description file of the power simulation system; generating a container mirror image of the power simulation system based on the containerization description file; deploying the container mirror image and the mirror image standard starting environment to a target computer; and starting the container mirror by a standard mirror starting mode.
The specific implementation method comprises the following 4 steps. Step SS 1: constructing a containerization description file of the power simulation system; an example file is as follows:
FROM centros// base image;
LABEL maintainer ABC < XXX @ XX.XX >// maintainer;
ENV D5000_ HOME ═ HOME/D5000/AABB// specifies the in-container environment variables;
ENVLD _ LIBRARY _ PATH ═ home/d5000/AABB/lib $ { LD _ LIBR ARY _ PATH } "// specify in-container environment variables;
EXPOSE 23452346// derived port number;
RUN mkdir/home/d5000// create a directory within the mirror;
ADD AABB _ so/lib/usr/lib 64///adding existing directory into the mirror;
sh/home/d 5000///adding an existing file to the mirror image;
ADD AABB/home/d5000/AABB// ADD existing directory to mirror image;
sh// modify the file rights in the mirror image at RUN chmod 755/home/d 5000/RUN;
CMD [ "/home/d5000/run.sh" ]// script to be automatically executed when the container is run.
Step SS 2: generating a container mirror image of the power simulation system based on the containerization description file of the power simulation system; and executing an image generation instruction in a corresponding directory by using a terminal (terminal) in a development environment, such as PowerShell, and automatically generating a container image of the power simulation system according to the description file in the step SS 1.
An example of a terminal instruction is as follows:
docker image build-t AABB:1.0.。
step SS 3: deploying the container mirror image and the mirror image standard starting environment to a target computer; the method specifically comprises the following steps: copying the power simulation system container image generated in the step SS2 to a corresponding directory of the target computer, and starting the environment according to the target computer system environment deployment container image standard.
Step SS 4: the method for starting the container mirror image through the standard mirror image starting mode specifically comprises the following two steps.
Firstly, a container mirror image starting configuration file is constructed, the file adopts a YAML file format, wherein the packaging association relation of the container mirror image, a host port and a container mirror image packaging port used by the container mirror image starting configuration file, an interface (API) package used by a starting environment, the content type of a described object, a reference name of a content object related to the container mirror image, the description parameter configuration content of the object and the like are described.
Examples of which are as follows:
Figure BDA0002275242220000051
Figure BDA0002275242220000061
Figure BDA0002275242220000071
and then, executing a power simulation system starting instruction packaged by the container image in a corresponding directory by using a terminal (terminal) in the environment of the target computer system, such as PowerShell, and automatically starting the container image according to the container image starting configuration file.
Example instructions are as follows: kubecect apply-f AB.yaml; the invention can start a plurality of images simultaneously, namely parallel start.
The invention further provides a containerization-based power simulation system deployment device, which comprises a containerization description module, a container mirror image generation module, a container mirror image deployment module and a container mirror image starting module, wherein the output end of the containerization description module is connected with the input end of the container mirror image generation module, the output end of the container mirror image generation module is connected with the input end of the container mirror image deployment module, and the output end of the container mirror image deployment module is connected with the input end of the container mirror image starting module.
In a preferred embodiment, the containerization description module is used for constructing a containerization description file of the power simulation system; the container mirror image generation module is used for executing a mirror image generation instruction in a corresponding directory by using a terminal in a development environment and automatically generating a container mirror image of the power simulation system according to the containerization description file.
As a preferred embodiment, the container image deployment module is configured to copy the generated container image of the power simulation system to a corresponding directory of the target computer, and deploy an image standard boot environment according to a target computer system environment.
As a preferred embodiment, the container image starting module is configured to construct a container image starting configuration file, and start a container image in a standard image starting manner according to the configuration file, so that the power simulation system runs on the target computer completely.
The innovation points of the invention are as follows: the implementation process comprises the steps of the containerization packaging (including the definition and generation of the containerization description file of the electric power simulation system and the generation of the corresponding container image based on the description file), the deployment (including the deployment of the container image and the image standard starting environment) and the starting use (including the construction of the container image starting configuration file and the standardized starting and the parallel starting).
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A containerization-based electric power simulation system deployment method is characterized by comprising the following steps:
constructing a containerization description file of the power simulation system; generating a container mirror image of the power simulation system based on the containerization description file; deploying the container mirror image and the mirror image standard starting environment to a target computer; and starting the container mirror by a standard mirror starting mode.
2. The method for deploying a containerization-based power simulation system according to claim 1, wherein the generating a container image of the power simulation system based on the containerization description file specifically comprises: and executing a mirror image generation instruction in a corresponding directory by using a terminal in a development environment, and automatically generating a container mirror image of the power simulation system according to the containerization description file.
3. The containerization-based power simulation system deployment method of claim 1, wherein said deploying the container image and image standard boot environment to a target computer body comprises: copying the generated container mirror image of the power simulation system to a corresponding directory of a target computer, and deploying a mirror image standard starting environment according to the target computer system environment.
4. The method for deploying a containerized power simulation system according to claim 1, wherein the starting of the container image by the standard image starting method specifically comprises: and constructing a container mirror image starting configuration file, and starting the container mirror image in a standard mirror image starting mode according to the configuration file, so that the power simulation system completely runs on a target computer.
5. The containerization-based power simulation system deployment method of claim 4, wherein the constructing a container image startup profile comprises: the configuration file adopts a YAML file format, and describes the packaging association relationship of the container mirror image, a host port and a container mirror image packaging port used by the container mirror image, an API (application programming interface) package used by a starting environment, the content type of the described object, the name of the content object related to the container mirror image, and the configuration content of the description parameters of the content object.
6. The method as claimed in claim 4, wherein the booting a container image by a standard image booting method according to the configuration file specifically includes: and executing a power simulation system starting instruction packaged by the container mirror image in a corresponding directory by using a terminal in the target computer system environment, and automatically starting the container mirror image according to the container mirror image starting configuration file.
7. The electric power simulation system deployment device based on containerization is characterized by comprising a containerization description module, a container mirror image generation module, a container mirror image deployment module and a container mirror image starting module, wherein the output end of the containerization description module is connected with the input end of the container mirror image generation module, the output end of the container mirror image generation module is connected with the input end of the container mirror image deployment module, and the output end of the container mirror image deployment module is connected with the input end of the container mirror image starting module.
8. The containerization-based power simulation system deployment device of claim 7, wherein the containerization description module is configured to construct a containerization description file of the power simulation system; the container mirror image generation module is used for executing a mirror image generation instruction in a corresponding directory by using a terminal in a development environment and automatically generating a container mirror image of the power simulation system according to the containerization description file.
9. The containerization-based power simulation system deployment apparatus of claim 7, wherein the container mirror deployment module is configured to copy the generated container mirror of the power simulation system to a corresponding directory of the target computer, and deploy a mirror standard boot environment according to the target computer system environment.
10. The containerization-based power simulation system deployment device of claim 7, wherein the container image boot module is configured to construct a container image boot configuration file, and boot a container image in a standard image boot manner according to the configuration file, so that the power simulation system runs on the target computer completely.
CN201911120208.6A 2019-11-15 2019-11-15 Electric power simulation system deployment method and device based on containerization Pending CN110928643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911120208.6A CN110928643A (en) 2019-11-15 2019-11-15 Electric power simulation system deployment method and device based on containerization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911120208.6A CN110928643A (en) 2019-11-15 2019-11-15 Electric power simulation system deployment method and device based on containerization

Publications (1)

Publication Number Publication Date
CN110928643A true CN110928643A (en) 2020-03-27

Family

ID=69853162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911120208.6A Pending CN110928643A (en) 2019-11-15 2019-11-15 Electric power simulation system deployment method and device based on containerization

Country Status (1)

Country Link
CN (1) CN110928643A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506668A (en) * 2020-12-22 2021-03-16 上海万向区块链股份公司 Containerization-based image recognition algorithm deployment method, system and medium
CN114138346A (en) * 2021-11-02 2022-03-04 北京安天网络安全技术有限公司 Terminal evidence obtaining method and device, electronic equipment and storage medium
CN116450153A (en) * 2023-04-26 2023-07-18 北京计算机技术及应用研究所 Rapid deployment method for containerized simulation platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150072316A1 (en) * 2004-05-27 2015-03-12 Zedasoft, Inc. System and method for streaming video into a container-based architecture simulation
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN106548288A (en) * 2016-11-04 2017-03-29 环球大数据科技有限公司 The polymorphic instance management system and method for many scenes of electric power
CN106789339A (en) * 2017-01-19 2017-05-31 北京仿真中心 A kind of distributed cloud emulation mode and system based on lightweight virtualization architecture
CN107463432A (en) * 2017-08-17 2017-12-12 福建中金在线信息科技有限公司 Server production environment dispositions method, device, electronic equipment and storage medium
CN108052333A (en) * 2017-12-11 2018-05-18 北京紫优能源科技有限公司 A kind of power scheduling centralized control system standardization Automation arranging method and framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150072316A1 (en) * 2004-05-27 2015-03-12 Zedasoft, Inc. System and method for streaming video into a container-based architecture simulation
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN106548288A (en) * 2016-11-04 2017-03-29 环球大数据科技有限公司 The polymorphic instance management system and method for many scenes of electric power
CN106789339A (en) * 2017-01-19 2017-05-31 北京仿真中心 A kind of distributed cloud emulation mode and system based on lightweight virtualization architecture
CN107463432A (en) * 2017-08-17 2017-12-12 福建中金在线信息科技有限公司 Server production environment dispositions method, device, electronic equipment and storage medium
CN108052333A (en) * 2017-12-11 2018-05-18 北京紫优能源科技有限公司 A kind of power scheduling centralized control system standardization Automation arranging method and framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WUCONG60: "Kubernetes系列之四:使用yaml文件创建deployment来部署一个应用程序到k8s集群", 《HTTPS://BLOG.CSDN.NET/WUCONG60/ARTICLE/DETAILS/81586272》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506668A (en) * 2020-12-22 2021-03-16 上海万向区块链股份公司 Containerization-based image recognition algorithm deployment method, system and medium
CN114138346A (en) * 2021-11-02 2022-03-04 北京安天网络安全技术有限公司 Terminal evidence obtaining method and device, electronic equipment and storage medium
CN116450153A (en) * 2023-04-26 2023-07-18 北京计算机技术及应用研究所 Rapid deployment method for containerized simulation platform
CN116450153B (en) * 2023-04-26 2023-11-24 北京计算机技术及应用研究所 Rapid deployment method for containerized simulation platform

Similar Documents

Publication Publication Date Title
CN110928643A (en) Electric power simulation system deployment method and device based on containerization
CN111610985B (en) Kubernetes cluster rapid deployment method on domestic platform
US8196138B2 (en) Method and system for migrating virtual machines between hypervisors
US11403146B2 (en) Method, apparatus, and server for managing image across cloud servers
US20100205604A1 (en) Systems and methods for efficiently running multiple instances of multiple applications
CN103544005A (en) Expansion developing method and device for Android custom control
CN105323161A (en) Method and system for implementing virtualization router based on Windows platform
CN106909362B (en) Method and device for generating BMC (baseboard management controller) firmware and method and device for starting BMC system
US9769052B2 (en) System testing framework
CN105117268A (en) Installing method and system for automatically installing linux systems
CN114816417B (en) Cross compiling method, device, computing equipment and storage medium
CN102388363B (en) Electron device and perform the method for instruction in virtual machine
CN115421740A (en) Deployment method and device of cloud native application
CN110275719B (en) Cloud physical host operating system deployment method based on domestic CPU and operating system
CN111552542A (en) Method for automatically constructing virtual machine mirror image
CN113467790B (en) Software packaging method and device and readable storage medium
CN104572140A (en) Method, device and system for transplanting operating system
US20210149577A1 (en) Migration of storage for workloads between desktop and cloud environments
CN107370623A (en) A kind of method and device for realizing system installation
CN104717175A (en) Virtual desktop processing method and system
CN107491330B (en) Method for improving running speed of embedded browser
CN114285698B (en) Method for constructing DDS communication middleware based on K3s on embedded operating system
CN115858362A (en) Server operating system application ecological adaptation method
CN113434118A (en) Layered architecture system of concentrator based on Java platform
JP4984409B2 (en) Script generation program and batch execution system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327

RJ01 Rejection of invention patent application after publication