CN111966364A - Weblogic automatic environment building method and system based on docker - Google Patents

Weblogic automatic environment building method and system based on docker Download PDF

Info

Publication number
CN111966364A
CN111966364A CN202010755443.7A CN202010755443A CN111966364A CN 111966364 A CN111966364 A CN 111966364A CN 202010755443 A CN202010755443 A CN 202010755443A CN 111966364 A CN111966364 A CN 111966364A
Authority
CN
China
Prior art keywords
weblogic
docker
installation
domain
script
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
CN202010755443.7A
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.)
State Grid Fujian Electric Power Co Ltd
Zhangzhou Power Supply Co of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Fujian Electric Power Co Ltd
Zhangzhou Power Supply Co of State Grid Fujian Electric Power 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 State Grid Fujian Electric Power Co Ltd, Zhangzhou Power Supply Co of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Fujian Electric Power Co Ltd
Priority to CN202010755443.7A priority Critical patent/CN111966364A/en
Publication of CN111966364A publication Critical patent/CN111966364A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/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
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a Docker-based Weblogic automatic environment building method and a Docker-based Weblogic automatic environment building system, which can build any JDK version and any Weblogic version in 3 minutes by using Docker and shell scripts, automatically install any JDK version, automatically install any Weblogic Server, automatically create a domain, automatically open remote debugging and automatically start a Weblogic Server domain. The method has simple steps, saves the installation time and improves the user experience.

Description

Weblogic automatic environment building method and system based on docker
Technical Field
The invention relates to the technical field of software application, in particular to a method and a system for building a Weblogic automatic environment based on docker.
Background
Weblogic is an application server produced by Oracle corporation of America, specifically a middleware based on JAVAEE architecture, and is a Java application server used for developing, integrating, deploying and managing large-scale distributed Web application, network application and database application. The dynamic function of Java and the security of the Java Enterprise standard are introduced into the development, integration, deployment and management of large-scale network applications.
Weblogic has various characteristics and advantages required by development and deployment of a mission-critical e-commerce Web application system, including high expandability, rapid development, flexible deployment, reliable mission-critical, and the like. Therefore, the method is widely applied in China, and is mainly applied to various industries such as telecommunication, finance, electric power, aviation, government and the like.
The steps of the Weblogic installation process in the prior art are complicated; and each step is provided with a 'next step' button, namely the current step is not completed and the next step cannot be entered, and the autonomy of the installation script is poor. Corresponding configuration information needs to be manually and gradually input in each step, the creation time is long, the working time is consumed, and the user experience is poor. Many times, various Weblogic versions and various JDK versions need to be tested in permutation and combination, resulting in a more tedious Weblogic installation process.
Disclosure of Invention
In view of this, the invention aims to provide a docker-based Weblogic automated environment building method and system, which are simple in steps, save installation time and improve user experience.
The invention is realized by adopting the following scheme: a method for building a Weblogic automatic environment based on docker specifically comprises the following steps:
step S1: building a Docker environment and installing a Docker service;
step S2: downloading a corresponding JDK version and a corresponding Weblogic installation package, putting the JDK installation package under JDKs/directory, and putting the Weblogic installation package under Weblogics/directory;
step S3: running a Docker script and a shell script to prepare for starting to create a Docker container;
step S4: transmitting a JDK installation package file name and a Weblogic installation package file name;
step S5: initializing a configuration file, automatically installing JDKs and Weblogic servers of corresponding versions, and creating a Weblogic domain.
Further, the method also comprises the following steps:
step S6: opening remote debugging and starting a Weblogic Server service;
step S7: configuring a weblogic domain;
step S8: restarting the weblogic service;
step S9: and verifying whether weblogic installation and domain creation are successful.
Wherein, the initializing the configuration file in step S5, and automatically installing the JDK and Weblogic Server of the corresponding version specifically include the following steps:
step S51: creating user and environment variables required by installation;
step S52: copying the JDK installation package of the corresponding version;
step S53: judging whether the file name of the JDK installation package is the end of bin; if yes, copying the bin file installation script; if not, copying the tar.gz file installation script;
step S54: identifying the installation version of Weblogic, copying a Weblogic installation package of a corresponding version, copying an installation script of the corresponding version and creating a domain script;
step S55: and automatically installing JDKs and Weblogic servers of corresponding versions.
In step S54, the Weblogic installation version is identified by the input Weblogic installation package file name.
Further, the creating of the Weblogic domain in step S5 specifically includes the following steps:
step S56: verifying whether the weblogic service is started completely; if yes, go to step S57; if not, restarting the weblogic service again;
step S57: enabling a product mode;
step S58: and configuring information including a domain root directory, a port, a domain name, a password, a corresponding host name and a host IP (Internet protocol), and finishing the creation of the Weblogic domain.
Further, in step S3, before the Docker script and the shell script are executed, the method further includes the steps of:
judging whether the host to be installed is a root user or not; if yes, directly operating a Docker command and a shell command; if not, firstly creating a root user on the host to be installed, and then operating the Docker command and the shell command.
The invention also provides a docker-based Weblogic automation environment building system which comprises a memory, a processor and computer program instructions stored on the memory and capable of running on the processor, wherein when the processor runs the computer program instructions, the steps of the method are realized.
The present invention also provides a computer readable storage medium having stored thereon computer program instructions executable by a processor, the computer program instructions, when executed by the processor, performing the method steps as described above.
Compared with the prior art, the invention has the following beneficial effects: the invention can construct any JDK version and any Weblogic version within 3 minutes by using the Docker and the shell script, automatically install any JDK version, automatically install any Weblogic Server, automatically create a domain, automatically open remote debugging and automatically start a Weblogic Server domain. The method has simple steps, saves the installation time and improves the user experience.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention.
Detailed Description
The invention is further explained below with reference to the drawings and the embodiments.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
As shown in fig. 1, the embodiment provides a Weblogic automated environment building method based on docker, which specifically includes the following steps:
step S1: building a Docker environment and installing a Docker service;
step S2: downloading a corresponding JDK version and a corresponding Weblogic installation package, putting the JDK installation package under JDKs/directory, and putting the Weblogic installation package under Weblogics/directory;
step S3: running a Docker script and a shell script to prepare for starting to create a Docker container;
step S4: transmitting a JDK installation package file name and a Weblogic installation package file name;
step S5: initializing a configuration file, automatically installing JDKs and Weblogic servers of corresponding versions, and creating a Weblogic domain. The method specifically comprises the following steps:
step S51: creating user and environment variables required by installation;
step S52: copying the JDK installation package of the corresponding version;
step S53: judging whether the file name of the JDK installation package is the end of bin; if yes, copying the bin file installation script; if not, copying the tar.gz file installation script;
step S54: identifying the installation version of Weblogic, copying a Weblogic installation package of a corresponding version, copying an installation script of the corresponding version and creating a domain script; identifying a Weblogic installation version through an input Weblogic installation package file name;
step S55: and automatically installing JDKs and Weblogic servers of corresponding versions.
Step S56: verifying whether the weblogic service is started completely; if yes, go to step S57; if not, restarting the weblogic service again;
step S57: enabling a product mode;
step S58: and configuring information including a domain root directory, a port, a domain name, a password, a corresponding host name and a host IP (Internet protocol), and finishing the creation of the Weblogic domain.
The following steps are then performed:
step S6: opening remote debugging and starting a Weblogic Server service;
step S7: configuring a weblogic domain;
step S8: restarting the weblogic service;
step S9: and verifying whether weblogic installation and domain creation are successful.
In this embodiment, in step S3, before the Docker script and the shell script are run, the method further includes the steps of: judging whether the host to be installed is a root user or not; if yes, directly operating a Docker command and a shell command; if not, firstly creating a root user on the host to be installed, and then operating the Docker command and the shell command.
In this embodiment, the JDK and Weblogic installation package download address is, where the JDK installation package address: https:// www.oracle.com/technetwork/java/archive-139210. html
Weblogic installation package download address: https:// www.oracle.com/technework/midleware/weblogic/downloads/wls-for-dev-1703574. html.
The embodiment also provides a docker-based Weblogic automation environment building system, which includes a memory, a processor, and computer program instructions stored in the memory and capable of being executed on the processor, and when the processor executes the computer program instructions, the method steps as described above are implemented.
The present embodiments also provide a computer readable storage medium having stored thereon computer program instructions executable by a processor, the computer program instructions, when executed by the processor, performing the method steps as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is directed to preferred embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow. However, any simple modification, equivalent change and modification of the above embodiments according to the technical essence of the present invention are within the protection scope of the technical solution of the present invention.

Claims (8)

1. A method for building a Weblogic automatic environment based on docker is characterized by comprising the following steps:
step S1: building a Docker environment and installing a Docker service;
step S2: downloading a corresponding JDK version and a corresponding Weblogic installation package, putting the JDK installation package under JDKs/directory, and putting the Weblogic installation package under Weblogics/directory;
step S3: running a Docker script and a shell script to prepare for starting to create a Docker container;
step S4: transmitting a JDK installation package file name and a Weblogic installation package file name;
step S5: initializing a configuration file, automatically installing JDKs and Weblogic servers of corresponding versions, and creating a Weblogic domain.
2. The method for building the Weblogic automatic environment based on docker according to claim 1, further comprising the following steps:
step S6: opening remote debugging and starting a Weblogic Server service;
step S7: configuring a weblogic domain;
step S8: restarting the weblogic service;
step S9: and verifying whether weblogic installation and domain creation are successful.
3. The method for building the Weblogic automated environment based on docker according to claim 1, wherein the initializing configuration file in step S5, and automatically installing JDKs and Weblogic servers of corresponding versions specifically comprises the following steps:
step S51: creating user and environment variables required by installation;
step S52: copying the JDK installation package of the corresponding version;
step S53: judging whether the file name of the JDK installation package is the end of bin; if yes, copying the bin file installation script; if not, copying the tar.gz file installation script;
step S54: identifying the installation version of Weblogic, copying a Weblogic installation package of a corresponding version, copying an installation script of the corresponding version and creating a domain script;
step S55: and automatically installing JDKs and Weblogic servers of corresponding versions.
4. The method for building the Weblogic automatic environment based on docker of claim 3, wherein in step S54, the Weblogic installation version is identified by the input Weblogic installation package file name.
5. The method for building the Weblogic automatic environment based on docker according to claim 1, wherein the Weblogic domain creation in the step S5 specifically comprises the following steps:
step S56: verifying whether the weblogic service is started completely; if yes, go to step S57; if not, restarting the weblogic service again;
step S57: enabling a product mode;
step S58: and configuring information including a domain root directory, a port, a domain name, a password, a corresponding host name and a host IP (Internet protocol), and finishing the creation of the Weblogic domain.
6. The method for building a Weblogic automation environment based on Docker as claimed in claim 1, wherein in step S3, before running the Docker script and the shell script, the method further comprises the steps of:
judging whether the host to be installed is a root user or not; if yes, directly operating a Docker command and a shell command; if not, firstly creating a root user on the host to be installed, and then operating the Docker command and the shell command.
7. A docker-based Weblogic automated environment building system, comprising a memory, a processor, and computer program instructions stored on the memory and executable on the processor, which when executed by the processor, implement the method steps of any of claims 1-6.
8. A computer-readable storage medium, having stored thereon computer program instructions executable by a processor, for implementing the method steps of any of claims 1-6 when the processor executes the computer program instructions.
CN202010755443.7A 2020-07-31 2020-07-31 Weblogic automatic environment building method and system based on docker Pending CN111966364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010755443.7A CN111966364A (en) 2020-07-31 2020-07-31 Weblogic automatic environment building method and system based on docker

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010755443.7A CN111966364A (en) 2020-07-31 2020-07-31 Weblogic automatic environment building method and system based on docker

Publications (1)

Publication Number Publication Date
CN111966364A true CN111966364A (en) 2020-11-20

Family

ID=73363539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010755443.7A Pending CN111966364A (en) 2020-07-31 2020-07-31 Weblogic automatic environment building method and system based on docker

Country Status (1)

Country Link
CN (1) CN111966364A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024842A (en) * 2021-11-02 2022-02-08 中国建设银行股份有限公司 Weblogic domain building method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172625A1 (en) * 2003-02-28 2004-09-02 Matthew Shinn System and method for determining when an EJB compiler needs to be executed
CN106325953A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Weblogic cluster one-key automatic deployment method
CN106487600A (en) * 2016-12-30 2017-03-08 广东浪潮大数据研究有限公司 A kind of automatic Deployment Solution for Services of WebLogic cluster
CN109977659A (en) * 2019-02-18 2019-07-05 平安科技(深圳)有限公司 Weblogic automatically creates method, system, device and the storage medium of local user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172625A1 (en) * 2003-02-28 2004-09-02 Matthew Shinn System and method for determining when an EJB compiler needs to be executed
CN106325953A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Weblogic cluster one-key automatic deployment method
CN106487600A (en) * 2016-12-30 2017-03-08 广东浪潮大数据研究有限公司 A kind of automatic Deployment Solution for Services of WebLogic cluster
CN109977659A (en) * 2019-02-18 2019-07-05 平安科技(深圳)有限公司 Weblogic automatically creates method, system, device and the storage medium of local user

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QAX-A-TEAM: "Weblogic环境搭建工具", 《HTTPS://GITHUB.COM/QAX-A-TEAM/WEBLOGICENVIRONMENT》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024842A (en) * 2021-11-02 2022-02-08 中国建设银行股份有限公司 Weblogic domain building method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11599348B2 (en) Container image building using shared resources
AU2012242758B2 (en) Deployment system for multi-node applications
US9250672B2 (en) Cloning target machines in a software provisioning environment
CN111309336B (en) Deployment method and device of distributed application
US8352916B2 (en) Facilitating the automated testing of daily builds of software
US20170115977A1 (en) Apparatus and method for automating the installation and configuration of infrastructure
US11068252B2 (en) System and method for dynamically determining applicable updates
CN113434158B (en) Custom management method, device, equipment and medium for big data component
CN111198695A (en) Automatic deployment method of micro-service administration management platform and electronic equipment
CN110058894B (en) Method, apparatus and computer program product for executing applications in a hybrid cloud
CN106502713A (en) A kind of method for upgrading software and system
CN105072398B (en) A kind of device updating method and device
CN117170803A (en) Method for generating signal-creation operating system pipeline, electronic equipment and storage medium
US9952953B2 (en) Non-monotonic eventual convergence for desired state configuration
CN112286636A (en) Method for realizing unified configuration center based on Docker and SVN
CN116820493A (en) Mirror image file deployment method, system, equipment and storage medium
CN112214227A (en) Edge server mirror image customization and deployment system and method
CN116069341A (en) Automatic deployment method, equipment and storage medium for application program
CN117112122A (en) Cluster deployment method and device
CN111966364A (en) Weblogic automatic environment building method and system based on docker
CN111897565A (en) Data processing method, device and equipment based on Internet of things
CN115599399A (en) Application program deployment method and device and storage medium
CN110795113B (en) Redis cluster service installation method, server and medium
CN112631897A (en) Method for quickly debugging linux kernel
CN107315602B (en) Application program upgrading method and terminal

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

Application publication date: 20201120