Dynamic script generation and execution in containers
AssigneeHewlett Packard Enterprise Development LP
InventorsEoghan Shields, Ravi Shekhar Jha, Pablo Gon Sanchez
Life of this patent
Estimating the term…
Abstract
Techniques are provided for dynamically generating and executing scripts and loading documents based on container engine events in a Containers-as-a-Service (CaaS) platform. A request to generate an item, which can be either a script or a document, in an application running in a container of a cloud environment is received. Based on the request, at least one container engine event associated with the application is monitored. The at least one container engine event is detected. The item is generated based on the detection of the at least one container engine event. The generated item is instantiated in the application in accordance with a type of the generated item.
Claims18
A computer system comprising:
- a processor;
- at least one memory having computer-readable instructions stored thereon which, when executed by the processor coupled to the at least one memory, cause the processor to:
- receive a user command specifying at least one container event to be monitored and an action to be performed on an application running in a container of a cloud environment;
- based on the user command, monitor the container for the at least one container engine event associated with the application;
- in response to detecting the at least one container engine event indicating a state change associated with the container, perform the action by generating a script corresponding to the at least one container engine event and loading a configuration file in the application when the at least one container engine event comprises a START event or an UPDATE event;
- and
- execute the generated script in the application.
A computerized method comprising:
- receiving a user command specifying at least one container event to be monitored and an action to be performed on an application running in a container of a cloud environment;
- based on the user command, monitoring the container for the at least one container engine event associated with the application;
- in response to detecting the at least one container engine event indicating a state change associated with the container, performing the action by generating a script corresponding to the at least one container engine event and loading a configuration file in the application when the at least one container engine event comprises a START event or an UPDATE event;
- and
- executing the generated script in the application.
A computer readable medium having computer-readable instructions stored thereon, which, when executed by at least one processor, cause the at least one processor to perform one or more steps comprising:
- receiving a user command specifying at least one container event to be monitored and an action to be performed on an application running in a container of a cloud environment;
- based on the user command, monitoring the container for the at least one container engine event associated with the application;
- in response to detecting the at least one container engine event indicating a status change associated with the container, performing the action by generating a script corresponding to the at least one container engine event and loading a configuration file in the application when the at least one container engine event comprises a START event or an UPDATE event;
- and
- executing the generated script in the application.
Dependencies are inferred from the claim text.