In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to deploy the O2OA development platform on the PAAS platform". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to deploy the O2OA development platform on the PAAS platform".
I. Mirror production
1. Upload the installation media o2server-5.0.3-linux.zip to the image production server. (upload directory is / paas/xxhpaas/moka/o2oa)
2. Use the unzip command to extract the installation package. Refer to the command: unzip o2server-5.0.3-linux.zip
3. Make the DockerFile file, the contents of which are as follows:
Dockerfile description
3.1. FROM is the name of the basic image. I have taken an image of tomcat that has been made, including Tomcat, JDK, and Linux operating systems.
3.2.The PAAS platform does not allow root users to launch applications, so I created a new user gx.
Copy the unzipped o2server into the container (use the COPY command). At first, try to unzip the installation package directly into the container, and try the copy method which is used only after several errors have been reported.
Give the newly created user gx the administrative permissions of the o2server directory, which can read, write and execute.
Switch the user to gx when the container starts (1000 is the user number of gx. The test paas platform requires the use of "user user number" to switch users)
3.5.The ENTRYPOINT after the container is started is start_linux.sh, which executes the script that starts o2oa.
4. Mirror making command: docker build-t o2oa_1.0.0.
5. Save the image as a tar package after the image is created. Save command: docker save o2oa_1.0.0 | gzip > o2oa_1.0.0.tar
6. Check whether the image can be started normally, and use the docker run command to create a container through the image on the packaging device. The steps are as follows
♦ checks the name of the image. Command: docker images | grep o2oa as shown below
♦ startup container: docker run image ID &. The actual command is shown below:
♦ checks whether the container is started and gets the container ID number. The actual command of docker ps lgrep mirroring ID is shown below. You can see that the container has been able to start normally. The first column of the display result is the container ID
♦ command to enter the container: docker exec-it container number / bin/bash. The actual command is as follows: (you can see that the console has been switched to gx user)
♦ checks the startup log of o2oa to see if the application starts normally.
Remember to destroy the container after ♦ inspection. Refer to the command: docker kill container ID
II. Deployment of PAAS platform
1. Upload the image file (o2oa_1.0.0.tar) to the image repository of the PAAS platform. Use the mirror asset upload tool provided by the PAAS platform (as shown below)
2. Create three sets of layer 7 loads to be provided to center (port: 30112), application (port: 30113) and web (port: 30110) applications respectively. The details are as follows:
3. To create an application on the PAAS platform, the key configuration information is as follows:
3.1. CPU and memory need to be selected properly. I used 2C 6G memory in the test environment, and the container image used the previously uploaded o2oa_1.0.1 version.
Mount configuration files node_127.0.0.1.json and externalDataSources.json (put the basic server configuration files and database files into the PAAS platform for management. After the container starts, before the application starts, the PAAS platform writes the configuration file to the / data/o2oaserver/config directory)
Node_127.0.0.1.json profile modification: set center port to 30112, set application port to 30113, modify web port to 30110
The content of externalDataSources.json configuration file is the configuration of oracle-related database address, port, instance, user name and password
3.3.The setting of Kang check is currently set for host command check. Since it takes time for o2oa to start, you can set the delay time for the first check according to the startup time, and adjust the host command check to http check.
3.4.App is associated with layer 7 payload. Three http services of o2oa correspond to three layer 7 payloads, and the context forwarding rule is "/". The configuration interface is as follows
3.5. The application can be started normally, and the access effect is as follows. No error information is reported for visual related network requests.
Third, shared storage processing
1. Dockerfile modification, create the root directory / appdata of the shared storage in the container, and grant administrative permissions.
2. Mount the externalStorageSources.json configuration file during the container orchestration phase, and write the configuration file to the / data/o2server/config directory.
The sample contents of the configuration file are as follows, where you need to set "protocol" in the node of each JSON object to file and "prefix" to the directory address of the specific shared storage.
3. In the container orchestration phase, add / appdata shared storage mount.
IV. The problem of automatic expansion of container nodes
In consultation with the product group, the containerized deployment can be deployed without customization and modification of node_ip.json, and can be uniformly used with node_127.0.0.1.json. You can set the number of POD on the PAAS platform, as shown below:
After setting, the 2 POD can start normally, as shown below:
Thank you for your reading, the above is the content of "how to deploy the O2OA development platform on the PAAS platform". After the study of this article, I believe you have a deeper understanding of how to deploy the O2OA development platform on the PAAS platform. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.