Container repository optimization
AssigneeInternational Business Machines Corporation
InventorsPavan P. Nagaraja, Rajat R. Verma
Life of this patent
Estimating the term…
Abstract
An application component contained in a template is identified. The repository is scanned to determine whether the application component identified from the template is preexisting in the repository. In response to a determination that the identified application component is preexisting, the identified application component is removed before the template is saved in the repository and in response to a determination that the identified application component is not preexisting, the identified application component is posted in the repository.
Claims12
A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions readable by a processor to cause the processor to perform a method comprising:
- identifying an application component, of a plurality of application components, contained in a template, wherein each application component of the plurality of application components are distinguished from each other via a unique identifier, wherein the unique identifier includes a tag;
- scanning a repository to determine whether the application component identified from the template is preexisting in the repository;
- in response to a determination that the identified application component is preexisting, removing the identified application component before the template is saved in the repository, wherein removing the identified application component includes at least one of replacing the identified application component with a corresponding address from the repository related to the identified application component and updating a corresponding section of the repository with metadata information related to the identified application component, wherein the corresponding address and metadata information are saved to the tag associated with the identified application component;
- and
- in response to a determination that the identified application component is not preexisting, posting the identified application component in the repository, wherein the tag associated with the identified application component associates an image of the application component in the template to a corresponding application component saved on the repository;
- receiving an input for servicing a new container application;
- breaking the input into one or more application components, the application components further segregating as a base component and one or more auxiliary components;
- extracting the corresponding preexisting versions of the segregated application components from the base section and the auxiliary section, respectively of the repository;
- and
- gluing the extracted versions of the application components respectively, from the repository on a scratch pad.
A computer system:
- one or more computer processors;
- one or more computer readable storage media;
- program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the program instructions causing the at least one processor to perform a method comprising:
- identifying an application component, of a plurality of application components, contained in a template, wherein each application component of the plurality of application components are distinguished from each other via a unique identifier, wherein the unique identifier includes a tag;
- scanning a repository to determine whether the application component identified from the template is preexisting in the repository;
- in response to a determination that the identified application component is preexisting, removing the identified application component before the template is saved in the repository, wherein removing the identified application component includes at least one of replacing the identified application component with a corresponding address from the repository related to the identified application component and updating a corresponding section of the repository with metadata information related to the identified application component, wherein the corresponding address and metadata information are saved to the tag associated with the identified application component;
- and
- in response to a determination that the identified application component is not preexisting, posting the identified application component in the repository, wherein the tag associated with the identified application component associates an image of the application component in the template to a corresponding application component saved on the repository;
- receiving an input for servicing a new container application;
- breaking the input into application components, the application components further segregating as a base component and one or more auxiliary components;
- extracting the corresponding preexisting versions of the segregated application components from the base section and the auxiliary section, respectively of the repository;
- and
- gluing the extracted versions of the application components respectively, from the repository on a scratch pad.
Dependencies are inferred from the claim text.