Technology stacks for images help you manage base images. You can use official technology stacks provided by Alibaba Cloud or create your own custom stacks. When you create an application service, you can upload your application code package, select a base image, and build a target image with a single click. This process is called Binary to Image (B2I). This process does not require a Dockerfile and simplifies image creation.
Currently, you can only browse and search for official technology stacks. You can edit and delist your custom technology stacks.
Create an image technology stack
When you create a technology stack, you define its basic metadata.
There is no limit on the number of technology stacks you can create.
Log on to the Containerized Application Service console. In the navigation pane on the left, click Image Center > Technology Stacks.
Click Create Technology Stack. In the window that appears, specify the following parameters and click OK.
Technology Stack Name: Enter a name for the technology stack. The name can contain letters, digits, and hyphens. It must start with a letter and end with a letter or digit. The name can be up to 32 characters long and cannot be changed after creation.
Technology Stack Description: Enter a description for the technology stack.
Technology Stack Icon: The optimal size for the icon is 80 × 80 px.
After the technology stack is created, a success message is displayed, and the technology stack appears as a card on the page. You can edit the description and icon on the technology stack's details page.
Create an image version
After you create a technology stack, you can create different image versions as needed.
There is no limit on the number of image versions you can create.
Click a technology stack card to go to its details page.
Click Create Image Version. Set the following parameters and then click Create.
Image Version Name: Enter a name for the image version. The name can contain letters, digits, and hyphens. It must start with a letter and end with a letter or digit. The name can be up to 32 characters long and cannot be changed after creation.
Base Image Information: Select the image repository and the base image version.
Code Package Upload Path: Specify the directory path in the image where the code package is placed during the build. The path must start with
/. The system copies the deployment package to this directory in the base image.Notes: Enter the Git address of the base image.
After the image version is created, a success message is displayed, and the version is added to the list on the technology stack details page. From this page, you can browse and delist your custom image versions.
The image version number is automatically generated by the system and cannot be modified.
A delisted image version cannot be recovered. You cannot select a delisted version when you create an application service.