The author | Cloud Toolkit
In recent years, the technology of container in the ear of rapid spread, container technology based on various scenarios attempt and practice but also emerge in endlessly, it changed with the rise of the way we create, publish and run applications, has realized the independence and isolation of resources, compared with the traditional virtualization technology, it is more lightweight.
As container technology represented by Docker is applied in more and more business scenarios, more and more developers begin to get used to packaging applications into standard format images and storing them in the image warehouse to complete daily deployment and release, team collaboration and other work. However, in a real production environment, we will generate a large number of images, whether third-party or self-built, and these images are accompanied by a large number of tedious and repetitive deployment and control work, such as deployment, storage, distribution and use.
For developers, switching between local ides, mirror repositories, containers, and other products takes a lot of time and effort, and the complexity of the operation is more prone to a series of errors.
At the end of the day, what developer wants to be a tool guy who does mechanical, repetitive work? Who doesn’t want to do something creative?
The Cloud Toolkit provides an answer to this problem
After Cloud Toolkit is installed and configured in IntelliJ IDEA, you only need to set deployment parameters on the configuration page to realize automatic deployment, quickly deploy applications to the image repository, and use Ali Cloud to provide secure image hosting capability and efficient image management.
So let’s see what we can do to make deployment 8 times faster. First, let’s talk about ACR, a container mirror repository that enables one-click deployment, continuous integration, and delivery with a free IDE plug-in.
Container image repository ACR
Ali cloud image warehouse ACR is divided into default instance version and enterprise version, although the combination of Ali cloud products to do multi-dimensional optimization, but not forced binding with Ali cloud. The default instance page of ACR provides container developers with secure image hosting and convenient image authorization functions, which facilitates users to manage the whole life cycle of images. Moreover, it simplifies the establishment and operation of Registry and supports image hosting in 20 regions around the world.
ACR enterprise layout provides large-scale image distribution capability, enterprise security exclusive features, and cloud native application delivery chain, which can be observed, tracked and set in the whole link, and can realize automatic delivery of one application change and multiple scenarios for enterprise customers with high security requirements and large-scale deployment in multiple regions.
The official link address: www.aliyun.com/product/acr
How to deploy 8 times faster?
Step 1: Prerequisites
- Docker is installed and configured.
- The Cloud Toolkit has been installed and configured.
Step 2: Configure the mirror warehouse
To deploy an application to the image repository using Cloud Toolkit, perform the following steps:
- Right-click the Project name to be deployed in the Project on the left of the IntelliJ IDEA interface. From the shortcut menu, choose Alibaba Cloud > Deploy to Registry/Kubernetes > Deploy to Registry;
- Set deployment parameters in the Deploy to Registry dialog box;
-
**Build Image ** -context Directory, Dockerfile, and Version. Image Repositories – Alibaba Cloud Container Registry, Custom Container Registry;
-
Context Directory and Dockerfile are automatically identified and set based on your local application project.
Step 3-1: Deploy applications to ACR
- On the deployment Parameters page, select Alibaba Cloud Container Registry;
- Choose a region;
- Select a namespace;
- Select the mirror warehouse;
- In the Advanced drop-down list, select the network type: Internet-public network; VPC Network – VPC Network; Classic Network – Classic Network;
- Click Apply, then Run.
Step 3-2: Deploy the application to another mirror repository
- Select Custom Container Registry on the Deployment Parameters page;
- Click Add to configure Registry information;
- Configure the mirror repository Name, Address, Username, and Password on the Registry page.
Note: You are advised to click Test Connection to Test whether the remote repository is successfully connected.
- Select Apply > OK;
- Enter your image address in the Repository dialog.
- Click Apply, then Run.
Step 4: Verify the results
Taking Ali Cloud container image service platform as an example, you can check whether the image is pushed successfully by checking the update time of your image version.
As mentioned above, the simple setup required to complete the relevant deployment work is simply “true. One-click deployment.
In addition to support for IntelliJ IDEA, the Cloud Toolkit now fully supports rapid deployment of Eclipse’s mirror repository.
Just a Cloud Toolkit plug-in to reduce the workload of developers
As a free native IDE plug-in for development, testing, diagnosis, and deployment, Cloud Toolkit helps developers achieve one-click deployment. The speed of R&D deployment has been increased by more than 8 times, and r&d costs have been significantly reduced.
So, don’t hesitate to search for “Cloud Toolkit” installation experience in major IntelliJ IDEA, Vs Code, Eclipse and other markets!
Obtaining method:
-
IntelliJ IDEA/PyCharm versions: plugins.jetbrains.com/plugin/1138…
-
The Visual Studio Code version: marketplace.visualstudio.com/items?itemN… oolkit-vscode
-
The Eclipse version: marketplace.eclipse.org/content/alibaba-cloud-toolkit
-
Maven version: help.aliyun.com/document_de…
-
Use the tutorial: help.aliyun.com/document_detail/147728.html
Welcome to join Dingding communication group: 30028976
Course recommended
In order for more developers to enjoy the dividends brought by Serverless, this time, we gathered 10+ Technical experts in the field of Serverless from Alibaba to create the most suitable Serverless open course for developers to learn and use immediately. Easily embrace the new paradigm of cloud computing – Serverless.
Click to free courses: developer.aliyun.com/learning/ro…
“Alibaba Cloud originator focuses on micro-service, Serverless, container, Service Mesh and other technical fields, focuses on the trend of cloud native popular technology, large-scale implementation of cloud native practice, and becomes the public account that most understands cloud native developers.”