Deploy applications to an image repository using Eclipse

更新时间:
复制 MD 格式

Alibaba Cloud Toolkit enables you to quickly deploy applications to an image repository for secure image hosting. After installing and configuring Alibaba Cloud Toolkit in Eclipse, you can automate deployment by setting the required parameters on the configuration interface.

Prerequisites

Image repository configuration

Follow these steps to deploy an application to an image repository using Cloud Toolkit:

  1. In Project Explorer on the left side of the Eclipse interface, right-click the project that you want to deploy. From the shortcut menu, select .
  2. On the Select a package method page, select the project path.
    Note Context Directory and Dockerfile are usually detected and set automatically based on your local project.
  3. In the Select a Repository dialog box, set the deployment parameters.
    repository
    Parameter descriptions:

Deploy applications to ACR

  1. On the deployment parameters page, select Alibaba Cloud Container Registry.
    alibaba
  2. Select a Region.
  3. Select a Namespace.
  4. Select an Image Repository.
  5. From the Advanced drop-down list, select a network type.
    • Internet: The public network.
    • VPC Network: A Virtual Private Cloud (VPC).
    • Classic Network: The classic network.
  6. Click Finish.

Deploy applications to other image repositories

  1. On the deployment parameters page, select Custom Container Registry.
  2. Click Add to configure the registry information.
  3. On the Registry page, configure the Name, Address, Username, and Password for the image repository.
    registry01
    Note Click Test Connection to verify the connection to the remote repo.
  4. Select .
  5. In the Repository dialog box, enter your image address.
  6. Click Finish.

Verify the result

For example, on the Alibaba Cloud Container Registry platform, you can confirm whether the image was pushed successfully by checking the update time of your Image Version.

结果验证