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 will explain in detail how to deploy Serverless applications in Maven. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
SAE application deployment mode 1. SAE overview
First of all, a brief introduction to SAE. SAE is an application-oriented Serverless PaaS platform that supports mainstream development frameworks such as Spring Cloud, Dubbo and HSF. Users can deploy applications directly to SAE with zero code modification, and use them on demand, pay by quantity, and be flexible in seconds. SAE gives full play to the advantages of Serverless to save idle resource costs for users; in experience, SAE adopts full hosting and operation-free maintenance, and users only need to focus on the development of core business, while application lifecycle management, micro-service management, logging, monitoring and other functions are handed over to SAE.
2. SAE application deployment method
When using SAE, you can see on the console that SAE supports three deployment modes, that is, it can be deployed through WAR package, JAR package and image. If you use applications such as Spring Cloud, Dubbo and HSF, you can directly package and upload them, or enter the address of the package and deploy to SAE. For scenarios that are not in Java language, you can also deploy them directly using images. In the future, we will also support direct upload packages in other languages.
In addition to the above console interface deployment, SAE also supports deployment through the Maven plug-in or IDE plug-in, so that you can perform automatic deployment operations without logging in to the console, and integrate tools such as Cloud effect and Jenkins to implement the CICD process.
Maven plug-in deployment
How can I deploy using the Maven plug-in? First, you need to add the Maven dependency toolkit-maven-plugin for the application. Next, you need to write a configuration file to configure the specific behavior of the plug-in. Three configuration files are defined here:
Toolkit_profile.yaml account profile is used to configure Aliyun ak and sk to identify Aliyun users. It is recommended to use sub-accounts ak and sk to reduce security risks.
Toolkit_package.yaml package configuration file is used to declare the type of application to be deployed. You can choose war, jar, url and image to deploy. If you use war or jar, the current application will be packaged and uploaded, while the url or image method needs to enter the corresponding package address or image address for deployment.
Toolkit_deploy.yaml deployment configuration, that is, you can configure the application's environment variables, startup parameters, health check, and so on, which is consistent with the configuration options on the console.
All three files have corresponding templates, and the specific template options can be viewed in the product documentation, and then you can automatically deploy to SAE by running the Maven package deployment command mvn clean package toolkit:deploy.
IDE plug-in deployment
On how to deploy Serverless applications in Maven to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.