[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112799692A - Tomcat application deployment method and application based on docker technology - Google Patents

Tomcat application deployment method and application based on docker technology Download PDF

Info

Publication number
CN112799692A
CN112799692A CN202110167077.8A CN202110167077A CN112799692A CN 112799692 A CN112799692 A CN 112799692A CN 202110167077 A CN202110167077 A CN 202110167077A CN 112799692 A CN112799692 A CN 112799692A
Authority
CN
China
Prior art keywords
tomcat
mirror image
application
deployment method
target type
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
CN202110167077.8A
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.)
Dilu Technology Co Ltd
Original Assignee
Dilu Technology Co Ltd
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 Dilu Technology Co Ltd filed Critical Dilu Technology Co Ltd
Priority to CN202110167077.8A priority Critical patent/CN112799692A/en
Publication of CN112799692A publication Critical patent/CN112799692A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a domcker technology-based tomcat application deployment method, which adopts a brand-new designed application operation environment architecture, can improve the efficiency of actually deployed application execution, solves the defect that the existing data dispersion deployment is relatively complex, and has flexible and quick constructed operation environment architecture, so that the tomcat application deployment designed and operated in the tomcat deployment method is more flexible and quick, and has better application value and stability; meanwhile, the invention further designs the application based on the obtained running environment, which is used for realizing the storage and backup of data and logs and can effectively improve the actual working efficiency of distributed storage.

Description

Tomcat application deployment method and application based on docker technology
Technical Field
The invention relates to a domcker technology-based tomcat application deployment method and application, and belongs to the technical field of application environment deployment and operation.
Background
In the field of existing big data application, for distributed storage of data, data is stored in a plurality of physical servers in a scattered manner through multiple designs and presented to a user in a process of uniform resource calling and application, but the data deployment structure is relatively complex, reproducibility in the actual application process is not high, and therefore efficiency of application execution in an actual data environment is not high.
Disclosure of Invention
The invention aims to solve the technical problem of providing a tomcat application deployment method based on the docker technology, which adopts a brand-new designed application operating environment architecture and can improve the efficiency of actually deployed application execution.
The invention adopts the following technical scheme for solving the technical problems: the invention designs a tomcat application deployment method based on docker technology, which is used for constructing the operating environment of a target type system corresponding to a target application, and comprises the following steps:
step A, installing and operating a docker development environment, and then entering step B;
b, according to the operation requirement corresponding to the target application, combining a software mirror image source corresponding to the target type system and a mirror image version corresponding to the target type system to construct a target type system mirror image, and then entering the step C;
and C, presetting a designated tomcat mirror image version by using the application, and constructing a tomcat mirror image.
As a preferred technical scheme of the invention: and the step C also comprises the steps of constructing a database of the specified type and executing corresponding database configuration.
As a preferred technical scheme of the invention: the step B comprises the following steps B1 to B4;
step B1, according to the target type system, selecting to obtain the mirror image version corresponding to the target type system;
b2, selecting a software mirror image source corresponding to the target type system according to the current network requirement, and updating a software list in the software mirror image source;
step B3, configuring the time zone and system language type corresponding to the target type system according to the operation requirement corresponding to the target application;
and step B4, constructing a corresponding target type system mirror image according to the mirror image version corresponding to the target type system, the software mirror image source corresponding to the target type system, the time zone corresponding to the target type system and the system language type, and then entering the step C.
As a preferred technical scheme of the invention: in the step C, the following process is executed to realize the construction of the tomcat mirror image;
firstly, a preset designated tomcat mirror image version is obtained based on a docker development environment, a corresponding jdk version is selected, then a corresponding environment variable is configured, and finally a tomcat mirror image is constructed in a dockerfile mode.
As a preferred technical scheme of the invention: and step C, the configuration of the mapping port and the start-stop mode is realized through a configuration file in a conf directory in the tocmat mirror image.
As a preferred technical scheme of the invention: in the step C, the following processes are executed to realize the construction of the database of the specified type and the configuration of the corresponding database;
and constructing the database of the specified type according to the mirror image version corresponding to the database of the specified type, and configuring a character set of the database of the specified type according to the application requirements of a preset database, wherein the character set comprises the maximum connection number and the initialized password information.
In view of the above, the technical problem to be solved by the present invention is to provide an application of a tomcat application deployment method based on a docker technology, which can improve the execution efficiency of deployed applications on the basis of a brand-new design of an application operating environment architecture.
The invention adopts the following technical scheme for solving the technical problems: the invention designs application of a tomcat application deployment method based on a docker technology, and realizes storage and backup of data and logs in a target type system operating environment based on a tomcat mirror image and in combination with a preset specified network distributed file system.
As a preferred technical scheme of the invention: any machine node of the cluster in the preset designated network distributed file system deploys a master node, the rest machine nodes deploy chunkserver nodes, and non-master nodes deploy mathlogger nodes and mount nodes.
As a preferred technical scheme of the invention: in the preset designated network distributed file system, at least one piece of original data is stored on any node in the cluster in a mounting mode, and at least one piece of backup data is stored on other nodes.
As a preferred technical scheme of the invention: and executing real-time backup of the log data of the tocmat mirror image and the metadata of the database of the specified type through the mapping relation between the inside and the outside of the corresponding container.
Compared with the prior art, the tomcat application deployment method and application based on the docker technology have the following technical effects:
the invention designs a tomcat application deployment method based on docker technology, which adopts a brand-new designed application operation environment architecture, can improve the efficiency of actually deployed application execution, solves the defect that the existing data dispersion deployment is relatively complex, and has flexible and quick constructed operation environment architecture, so that the tomcat application deployment designed to operate is more flexible and quick, and has better application value and stability; meanwhile, the invention further designs the application based on the obtained running environment, which is used for realizing the storage and backup of data and logs and can effectively improve the actual working efficiency of distributed storage.
Drawings
FIG. 1 is a schematic view of a flow architecture of a tomcat application deployment method based on a docker technology.
Detailed Description
The following description will explain embodiments of the present invention in further detail with reference to the accompanying drawings.
docker allows developers to package their applications and dependencies into a lightweight, portable container and then distribute them to any popular Linux machine, as well as to implement virtualization.
Tomcat is a Servlet container developed by Apache, realizes support to servlets and JSPs, and provides some specific functions as a Web server, such as Tomcat management and control platform, security domain management, Tomcat valve, and the like.
MooseFS is a network distributed file system with fault tolerance. The data is dispersedly stored on a plurality of physical servers, and a uniform resource is presented to a user.
Based on the prior art, the invention designs a tomcat application deployment method based on the docker technology, which is used for constructing the running environment of a target type system corresponding to a target application, and in practical application, as shown in fig. 1, the following steps a to C are specifically executed.
And step A, installing and operating a docker development environment, and then entering step B.
In practical application, for the application of the step docker development environment, the installation is carried out through yum source docker official addresses, and the method specifically comprises the following steps:
step a1. based on the networking environment conditions, configure docker. repo files under/etc/yum.
baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1
gpgkey=https://yum.dockerproject.org/gpg。
Step A2. use yum install docker-engine to install docker.
Step A3: service, system start Docker service, system enable Docker service, set up the start Docker Daemon.
And B, according to the running requirement corresponding to the target application, combining the software mirror image source corresponding to the target type system and the mirror image version corresponding to the target type system to construct a target type system mirror image, and then entering the step C.
In practical applications, the step B specifically executes the following steps B1 to B4.
And step B1, selecting to obtain the mirror image version corresponding to the target type system according to the target type system and the official Ubuntu mirror image.
And step B2, selecting a software mirror image source corresponding to the configuration target type system according to the current network requirement, and updating a software list in the software mirror image source to ensure the normal operation of the subsequent service configuration.
And step B3, configuring the time zone and the system language type corresponding to the target type system according to the operation requirement corresponding to the target application.
And step B4, constructing a corresponding target type system mirror image according to the mirror image version corresponding to the target type system, the software mirror image source corresponding to the target type system, the time zone corresponding to the target type system and the system language type, and then entering the step C.
And C, presetting a designated tomcat mirror image version, constructing a tomcat mirror image, constructing a designated type database and executing corresponding database configuration.
In practical application, in the step C, the following process is executed to implement the construction of the tomcat mirror image;
firstly, a preset designated tomcat mirror image version is obtained based on a docker development environment, a corresponding jdk version is selected, then a corresponding environment variable is configured, and finally a tomcat mirror image is constructed in a dockerfile mode.
In addition, in the construction of the tomcat mirror image, a configuration file under a conf directory in the tomcat mirror image can be further designed to realize the configuration of a mapping port and a starting and stopping mode.
In practical application, step C is to implement the following process to implement the construction of the database of the specified type and the configuration of the corresponding database;
and constructing the database of the specified type according to the mirror image version corresponding to the database of the specified type, and configuring a character set of the database of the specified type according to the application requirements of a preset database, wherein the character set comprises the maximum connection number and the initialized password information.
The tomcat application deployment method based on the docker technology is applied to practice, construction of an operating environment of a target type system corresponding to a target application is achieved, after the operating environment is obtained, a tomcat mirror image is designed, and storage and backup of data and logs in the operating environment of the target type system are achieved by combining a preset specified network distributed file system.
In practical application, any machine node of the cluster in the preset designated network distributed file system is designed to deploy a master node, the rest machine nodes are deployed with chunkserver nodes, and non-master nodes are deployed with matelogger nodes and mount nodes. And designing the preset designated network distributed file system, and storing at least one piece of original data on any node in the cluster and at least one piece of backup data on other nodes in a mounting mode. And designing log data of the tocmat mirror image and metadata of a specified type database, and executing real-time backup through a mapping relation between the inside and the outside of a corresponding container.
The tomcat application deployment method and application based on the docker technology are applied to practice, and a linux system is designed and adopted for a target type system; aiming at a database of a specified type, a mysql database is designed and adopted; and aiming at the preset specified network distributed file system, a MooseFS distributed file system is designed.
The tomcat application deployment method based on the docker technology is designed by the technical scheme, the newly designed application operation environment architecture is adopted, the efficiency of actually deployed application execution can be improved, the defect that the existing data dispersion deployment is relatively complex is overcome, the constructed operation environment architecture is flexible and quick, the tomcat application deployment designed to operate in the tomcat deployment method is more flexible and quick, and the tomcat application deployment method has better application value and stability; meanwhile, the invention further designs the application based on the obtained running environment, which is used for realizing the storage and backup of data and logs and can effectively improve the actual working efficiency of distributed storage.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A tomcat application deployment method based on docker technology is used for constructing an operating environment of a target type system corresponding to a target application, and is characterized by comprising the following steps:
step A, installing and operating a docker development environment, and then entering step B;
b, according to the operation requirement corresponding to the target application, combining a software mirror image source corresponding to the target type system and a mirror image version corresponding to the target type system to construct a target type system mirror image, and then entering the step C;
and C, presetting a designated tomcat mirror image version by using the application, and constructing a tomcat mirror image.
2. The domcker-technology-based tomcat application deployment method according to claim 1, characterized in that: and the step C also comprises the steps of constructing a database of the specified type and executing corresponding database configuration.
3. The domcker technology-based tomcat application deployment method according to claim 2, characterized in that: the step B comprises the following steps B1 to B4;
step B1, according to the target type system, selecting to obtain the mirror image version corresponding to the target type system;
b2, selecting a software mirror image source corresponding to the target type system according to the current network requirement, and updating a software list in the software mirror image source;
step B3, configuring the time zone and system language type corresponding to the target type system according to the operation requirement corresponding to the target application;
and step B4, constructing a corresponding target type system mirror image according to the mirror image version corresponding to the target type system, the software mirror image source corresponding to the target type system, the time zone corresponding to the target type system and the system language type, and then entering the step C.
4. The domcker technology-based tomcat application deployment method according to claim 2 or 3, characterized in that: in the step C, the following process is executed to realize the construction of the tomcat mirror image;
firstly, a preset designated tomcat mirror image version is obtained based on a docker development environment, a corresponding jdk version is selected, then a corresponding environment variable is configured, and finally a tomcat mirror image is constructed in a dockerfile mode.
5. The domcker technology-based tomcat application deployment method according to claim 4, characterized in that: and step C, the configuration of the mapping port and the start-stop mode is realized through a configuration file in a conf directory in the tocmat mirror image.
6. The domcker technology-based tomcat application deployment method according to claim 2 or 3, characterized in that: in the step C, the following processes are executed to realize the construction of the database of the specified type and the configuration of the corresponding database;
and constructing the database of the specified type according to the mirror image version corresponding to the database of the specified type, and configuring a character set of the database of the specified type according to the application requirements of a preset database, wherein the character set comprises the maximum connection number and the initialized password information.
7. An application of the domcker technology-based tomcat application deployment method in claim 1, characterized in that: based on the tomcat mirror image, the storage and backup of data and logs in the running environment of the target type system are realized by combining a preset specified network distributed file system.
8. The application of the domcker technology-based tomcat application deployment method according to claim 7, wherein: any machine node of the cluster in the preset designated network distributed file system deploys a master node, the rest machine nodes deploy chunkserver nodes, and non-master nodes deploy mathlogger nodes and mount nodes.
9. The application of the domcker technology-based tomcat application deployment method according to claim 7, wherein: in the preset designated network distributed file system, at least one piece of original data is stored on any node in the cluster in a mounting mode, and at least one piece of backup data is stored on other nodes.
10. The application of the domcker technology-based tomcat application deployment method according to claim 7, wherein: and executing real-time backup of the log data of the tocmat mirror image and the metadata of the database of the specified type through the mapping relation between the inside and the outside of the corresponding container.
CN202110167077.8A 2021-02-07 2021-02-07 Tomcat application deployment method and application based on docker technology Pending CN112799692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110167077.8A CN112799692A (en) 2021-02-07 2021-02-07 Tomcat application deployment method and application based on docker technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110167077.8A CN112799692A (en) 2021-02-07 2021-02-07 Tomcat application deployment method and application based on docker technology

Publications (1)

Publication Number Publication Date
CN112799692A true CN112799692A (en) 2021-05-14

Family

ID=75814592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110167077.8A Pending CN112799692A (en) 2021-02-07 2021-02-07 Tomcat application deployment method and application based on docker technology

Country Status (1)

Country Link
CN (1) CN112799692A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095473A1 (en) * 2013-09-30 2015-04-02 Oracle International Corporation Automatic configuration of applications based on host metadata using application-specific templates
CN109960580A (en) * 2017-12-25 2019-07-02 航天信息股份有限公司 A kind of method and system for disposing service of making out an invoice
CN111026415A (en) * 2019-12-17 2020-04-17 南京奥工信息科技有限公司 Software deployment method for dynamically adapting to software and hardware operating environment based on container technology
CN111949276A (en) * 2020-08-17 2020-11-17 浪潮云信息技术股份公司 System and method for automatically deploying application program based on container mode
CN112084008A (en) * 2020-09-10 2020-12-15 浪潮云信息技术股份公司 Method for rapidly deploying cloud pipe system based on container technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150095473A1 (en) * 2013-09-30 2015-04-02 Oracle International Corporation Automatic configuration of applications based on host metadata using application-specific templates
CN109960580A (en) * 2017-12-25 2019-07-02 航天信息股份有限公司 A kind of method and system for disposing service of making out an invoice
CN111026415A (en) * 2019-12-17 2020-04-17 南京奥工信息科技有限公司 Software deployment method for dynamically adapting to software and hardware operating environment based on container technology
CN111949276A (en) * 2020-08-17 2020-11-17 浪潮云信息技术股份公司 System and method for automatically deploying application program based on container mode
CN112084008A (en) * 2020-09-10 2020-12-15 浪潮云信息技术股份公司 Method for rapidly deploying cloud pipe system based on container technology

Similar Documents

Publication Publication Date Title
US10740081B2 (en) Methods and apparatus for software lifecycle management of a virtual computing environment
US20180121230A1 (en) Evaluating distributed application performance in a new environment
US8335851B1 (en) Network resource deployment for cloud-based services
US9875133B2 (en) Virtual machine disk image installation
US8713177B2 (en) Remote management of networked systems using secure modular platform
US20170339008A1 (en) Distributed operational control in computing systems
US10318279B2 (en) Autonomous upgrade of deployed resources in a distributed computing environment
CN117099079B (en) System configuration freezing and change management of services deployed via continuous delivery configured on a data center in a cloud platform
US20160098262A1 (en) Release lifecycle management system for multi-node application
CN106549789B (en) Method and system for realizing server installation
WO2016050270A1 (en) Provisioning a service
CN110990026A (en) Automatic deployment method and system for PaaS platform
KR20150108230A (en) Cluster construction method and apparatus thereof
CN115827008B (en) Cloud primary big data component management system based on cloud primary platform Kubernetes
CN108228197B (en) Method and device for installing software in cluster
CN105893545A (en) Efficient Hadoop cluster deployment method
CN110764918A (en) Method for managing main nodes in container cluster
CN106708573B (en) System and method for Hadoop cluster automatic installation
CN116783581A (en) Deploying software release on a data center configured in a cloud platform
CN112468545A (en) Cloud host creation method, device, system, equipment and readable storage medium
CN108255500B (en) Cobbler-based operating system automatic installation method compatible with virtualization architecture
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN112799692A (en) Tomcat application deployment method and application based on docker technology
CN114443059A (en) Kubernets cluster deployment method, device and equipment
KR101271213B1 (en) Apparatus for managing of new device component of mobile terminal and method of the same

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