Automatically create custom images with Image Builder, CloudOps Orchestration Service (OOS), or Packer to improve accuracy and eliminate manual orchestration.
Image creation methods
The following table compares the automated image creation methods.
|
Method |
Advantage |
Scenario |
|
Users who regularly update custom images and are familiar with Dockerfile commands |
|
|
Users who regularly update custom images and are familiar with OOS template syntax |
|
|
Open source tool compatible with most cloud service providers |
Users who regularly update custom images and are familiar with Packer syntax |
Image creation procedure
Automatic custom image creation captures the system status and application data of an ECS instance at a specific point in time. Each method automates this by creating a temporary instance and releasing it after the image is created.
The procedure varies by method:
-
Automatically create a custom image with Image Builder
-
To use OOS, select a public template such as ACS-ECS-UpdateImage or create an O&M task template. You can view the process on the YAML, JSON, or Graphical Template tab of OOS in the ECS console.
-
To use Packer, write scripts with a JSON template such as the Packer generator.