Container image building using shared resources
AssigneeRed Hat, Inc.
InventorsMarek Goldmann, David Becvarik
Life of this patent
Estimating the term…
Abstract
Container image building using shared resources is disclosed. A first instruction file that contains a first plurality of instruction keywords is read. Based on the first plurality of instruction keywords, a first plurality of files from a shared location is copied to a first consolidated location. Based on the first plurality of instruction keywords, a first container command file that references at least some of the first plurality of files on the first consolidated location is generated, the first container command file including commands that comply with a container builder syntax.
Claims17
A method comprising:
- reading, by a computing device comprising a processor device, a first instruction file that contains a first plurality of instruction keywords, wherein at least one of the first plurality of instruction keywords includes a module instruction keyword that comprises a parameter that identifies a shared location;
- parsing the first instruction file to detect particular keywords;
- in response to detecting a presence of the module instruction keyword in the first instruction file, copying, by the computing device, a first plurality of files from the shared location identified in the first instruction file to a first consolidated location;
- in response to detecting the presence of the particular keywords in the first instruction file, generating, by the computing device, a first container command file that references at least some of the first plurality of files on the first consolidated location, the first container command file including commands that comply with a container builder syntax;
- and
- initiating a container builder to use the first container command file to generate a first container image that is configured to implement a first functionality.
A computing device, comprising:
- a memory;
- and
- a processor device coupled to the memory to:
- read a first instruction file that contains a first plurality of instruction keywords, wherein at least one of the first plurality of instruction keywords includes a module instruction keyword that comprises a parameter that identifies a shared location;
- parse the first instruction file to detect particular keywords;
- in response to detecting a presence of the module instruction keyword in the first instruction file, copy a first plurality of files from the shared location identified in the first instruction file to a first consolidated location;
- in response to detecting a presence of the particular keywords in the first instruction file, generate a first container command file that references at least some of the first plurality of files on the first consolidated location, the first container command file including commands that comply with a container builder syntax;
- and
- initiate a container builder to use the first container command file to generate a first container image that is configured to implement a first functionality.
A computer program product stored on a non-transitory computer-readable storage medium and including instructions to cause a processor device to:
- read a first instruction file that contains a first plurality of instruction keywords, wherein at least one of the first plurality of instruction keywords includes a module instruction keyword that comprises a parameter that identifies a shared location;
- parse the first instruction file to detect particular keywords;
- in response to detecting a presence of the module instruction keyword in the first instruction file, copy a first plurality of files from the shared location identified in the first instruction file to a first consolidated location;
- in response to detecting a presence of the particular keywords in the first instruction file, generate a first container command file that references at least some of the first plurality of files on the first consolidated location, the first container command file including commands that comply with a container builder syntax;
- and
- initiate a container builder to use the first container command file to generate a first container image that is configured to implement a first functionality.
Dependencies are inferred from the claim text.