In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the "Rainbond offline environment JAVA source code construction method", in the daily operation, I believe that many people in the Rainbond offline environment JAVA source code construction method problems, the editor consulted all kinds of data, sorted out a simple and easy to use method of operation, hope to answer the "Rainbond offline environment JAVA source code construction method" of doubt! Next, please follow the editor to study!
Deploy the code repository offline
In an offline environment, it is recommended to use the platform's offline import feature to quickly import Gitlab applications and install them.
Offline resources need to be obtained in advance: Gitlab application package Gogs application package
-access the Rainbond application management platform and import offline application packages
The offline import of Gogs is the same as that of Gitlab.
At this point, we have a privatized code repository. You can use it to host code, and you can use it to build automatically.
Offline docking / deployment to build private servers
During the construction process of Java source code based on Maven, the dependency is parsed according to the pom.xml file, and the dependency package is pulled from the specified build private server. In Rainbond, the default source code build package repository rbd-repo is installed, which can be used not only as an agent for existing private servers, but also for building local private servers to meet the needs of different users.
-there is already a docking of private servers.
-build a local warehouse and import the jar package
Configure the application runtime offline
This section provides a solution to install the runtime (Jdk) offline in the application, which will run a private server repository service, which can be responsible for installing the Jdk environment needed for java operation.
Download offline resource images in a networked environment
Docker pull rainbond/buildpack:java-v5.1.5docker save rainbond/buildpack:java-v5.1.5 > rainbond-buildpack-java-v5.1.5.tgz
Import Mirror
Put the saved image compressed file on the first management node, and then import the image:
Docker load-I rainbond-buildpack-java-v5.1.5.tgzdocker tag rainbond/buildpack:java-v5.1.5 goodrain.me/buildpack:java-v5.1.5docker push goodrain.me/buildpack:java-v5.1.5
Run private service warehouse service
Edit the configuration file to get the service running.
Vi / opt/rainbond/conf/base.yaml
Add the following paragraph to the bottom line
-name: rbd-java-buildpack endpoints:-name: BUILDPACK_ENDPOINTS protocol: port: 2017 health: name: rbd-java-buildpack model: http address: 127.0.0.1:2017/lang/ max_errors_num: 3 time_interval: 30 after:-docker type: simple pre_start: docker rm rbd-java-buildpack start: >-docker run-- name rbd-java-buildpack-- network host-I goodrain.me/ Buildpack:java-v5.1.5 stop: docker stop rbd-java-buildpack restart_policy: always
Start the service
Node service update
Verify that the service is running
Grctl cluster
Docking rbd-repo and modifying remote warehouse
Rbd-repo of all nodes needs to be adjusted.
Modify the URL corresponding to the remote warehouse pkg_lang to http://:2017/lang/
At this point, the configuration of the Java source code construction environment in the offline environment is complete.
At this point, the study of "the source code construction method of JAVA in the offline environment of Rainbond" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.