How and when images are created
This document covers when docker images and AMIs are created.
When a service is defined, the primary component for the same is application component. The deployable docker images or AMIs are created for the application component. Images can be created during either of the mentioned processes : During release or during deployment.
Image creation during release
During release of the service, docker images and AMIs both are created for all the application components using the artifact zip files for the respective application components. During release, the deployment type is not checked and both the images are created. Refer to the document 'Release using Odin' to know how to release a service.
Image creation during deployment
During deployment, based on the deployment type specified for the application component in the provisioning file, the image is created. If the deployment type mentioned is 'container', then a docker image will be created and if the deployment type is 'EC2', then AMI will be created.
Refer to the document 'Provisioning' for the sample provisioning file to know how to specify deployment type. To know how to deploy a service, use the document 'Deploy using Odin'.
Last updated