Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Refuse to be a tool man! Teach you to quickly deploy applications to container image repositories with one click

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Author | Cloud Toolkit

In recent years, container technology has spread rapidly, and the attempts and practices of container technology based on various scenarios have emerged one after another. Its rise has changed the way we create, publish and run applications. It realizes the independence and isolation of resources, which is more lightweight than the traditional virtualization technology.

With the container technology represented by Docker being applied in more and more business scenarios, more and more developers are used to packaging applications into standard format images and storing them in image repositories in order to complete daily deployment and release, team cooperation and other work. However, in the real production environment, we will produce a large number of images, whether third-party or self-built, and these images will be accompanied by a large number of tedious and repetitive deployment and control work, such as deployment, preservation, distribution and use.

For developers, switching back and forth between local IDE, image repositories, containers and other products not only takes a lot of time and energy, but also tedious and detailed operations are more likely to cause a series of errors.

In the final analysis, which developer wants to be a tool person who works mechanically every day? Who doesn't want to do some creative work?

Faced with such a difficult problem, Cloud Toolkit gives the answer ~

After IntelliJ IDEA installs and configures Cloud Toolkit, you only need to set deployment parameters in the configuration interface to achieve automatic deployment, quickly deploy applications to image repositories, and provide secure image hosting capabilities with Aliyun to manage images efficiently.

So, let's take a look at what we can do to speed up deployment eight times faster. First of all, let's talk to you about the container image repository ACR that can be deployed, continuously integrated and delivered with one click with the free IDE plug-in.

Container Image Warehouse ACR

Aliyun Image Warehouse ACR is divided into default instance version and enterprise version. Although multi-dimensional optimization is made with Aliyun products, it is not forcefully bound with Aliyun. The default instance version of ACR is for container developers. It provides secure image hosting and convenient image authorization features, facilitates image lifecycle management, simplifies the construction, operation and maintenance of Registry, and supports image hosting in 20 regions around the world.

For enterprise customers with high security requirements and large-scale deployment of business in multiple regions, ACR Enterprise Edition provides large-scale image distribution capabilities, enterprise-class security exclusive features, as well as cloud native application delivery chain, full-link observable, traceable and configurable, and can achieve automatic delivery of one application change and multiple scenarios.

Official link address: https://www.aliyun.com/product/acr

How to speed up deployment by 8 times? Step 1: prerequisites Docker; has installed and configured Cloud Toolkit. Step 2: image repository configuration

The specific steps for deploying the application to the image repository using Cloud Toolkit are as follows:

Right-click the name of the project to be deployed in Project on the left side of the IntelliJ IDEA interface, and select Alibaba Cloud > Deploy to Registry / Kubernetes > Deploy to Registry; from the shortcut menu to set deployment parameters in the Deploy to Registry dialog box.

Description of parameters for deploying image repository: Build Image-Context Directory (file directory), Dockerfile (Docker file), Version (image version number), Image Repositories-Alibaba Cloud Container Registry (Ali Cloud image repository), Custom Container Registry (self-built image repository)

Note that Context Directory and Dockerfile are usually automatically identified and set according to your local application project.

Step 3-1: deploy applications to ACR. Select Alibaba Cloud Container Registry on the deployment parameters page.

Select a region; select a namespace; select an image repository; select the network type in the Advanced drop-down options: Internet-public network; VPC Network-VPC network; Classic Network-classic network; click Apply first, and then click Run. Step 3-2: deploy applications to other image repositories. Select Custom Container Registry; and click Add on the deployment parameters page to configure Registry information. Configure image repositories Name, Address, Username and Password on the Registry page.

Note: it is recommended to click Test Connection to test whether the remote warehouse is connected successfully.

Select Apply > OK; to fill in your image address in the Repository dialog box; click Apply first, and then click Run. Step 4: result validation

Take the Ali Cloud container image service platform as an example, you can check the update time of your image version to confirm whether the image has been pushed successfully.

As mentioned above, the relevant deployment work that can be completed with simple setup is simply "true. One-click deployment".

In addition to the support for IntelliJ IDEA, Cloud Toolkit now fully supports the rapid deployment of Eclipse's image repository.

Only a Cloud Toolkit plug-in is needed to reduce the developer's workload. It's as simple as that.

As a free native IDE plug-in that integrates development, testing, diagnosis and deployment, Cloud Toolkit helps developers achieve one-click R & D deployment. Increase the speed of R & D deployment by more than 8 times, and significantly reduce R & D costs.

So, don't hesitate to search for "Cloud Toolkit" installation experience in IntelliJ IDEA, Vs Code, Eclipse and other markets.

Acquisition method:

IntelliJ IDEA version / PyCharm version: https://plugins.jetbrains.com/plugin/11386-alibaba-cloud-toolkit

Visual Studio Code version: https://marketplace.visualstudio.com/items?itemName=alibabacloud-cloudtoolkit.toolkit-vscode

Eclipse version: https://marketplace.eclipse.org/content/alibaba-cloud-toolkit

Maven version: https://help.aliyun.com/document_detail/108682.html

Working with the tutorial: https://help.aliyun.com/document_detail/147728.html

Welcome to join the nail communication group: 30028976

Course recommendation

In order that more developers can enjoy the dividends brought by Serverless, this time, we have gathered 10 + technical experts in Alibaba's Serverless field to create an open Serverless course that is most suitable for developers to get started, so that you can easily embrace the new paradigm of cloud computing-Serverless.

Click to watch the course for free: https://developer.aliyun.com/learning/roadmap/serverless

"Alibaba Cloud Native focus on micro services, Serverless, containers, Service Mesh and other technology areas, focus on cloud native popular technology trends, cloud native large-scale landing practice, to be the official account of cloud native developers."

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report