SYS.Container
class SYS.Container extends %Library.RegisteredObject
The SYS.Container class contains methods to help users run IRIS inside an OCI-compliant container. The primary use case for these methods is to be called during the process of building an IRIS image, and these methods are called during InterSystems' own image build process.This class is designed to "fail loudly" to minimize the chance of uncaught errors in an image build process. By default, all public methods in SYS.Container will print any error to the console and terminate the entire calling process with an exit status of 1, which makes it easier to detect failures in automated build environments.
This behavior can be controlled by calling processes through environment variables, as specified in the documentation for ErrorHandler().
InterSystems builds official IRIS images using QuiesceForBundling().
Method Inventory
- ChangeGatewayMgrPassword()
- ChangePassword()
- EnableOSAuthentication()
- ErrorHandler()
- ForcePasswordChange()
- KillPassword()
- LockDownInstance()
- PreventFailoverMessage()
- PreventJournalRolloverMessage()
- QuiesceForBundling()
- SetMonitorStateOK()
- SetNeverExpires()
Methods
pPasswordFile Absolute path to file whose first line is our new cleartext password.
pCSPIniFile Override for path to CSP.ini file. It is usually correct to leave this blank and use the default.
pPasswordFile Absolute path to file whose first line is our new cleartext password.
These behaviors can be suppressed by setting either SYS_CONTAINER_QUIET or SYS_CONTAINER_CONTINUE_ON_ERROR to 1 in the OS environment.
Setting both makes this function a no-op.
pSC The %Status object to be interpreted.
pUsername The IRIS username to be operated on.
Container healthchecks are based on the System Monitor state. If this failover message is not suppressed, a new container may spend its first several minutes with the System Monitor in a "warn" state, which will cause container healthchecks to fail.
For more about "nostu", see Controlling an InterSystems IRIS Instance.
Customers who build their own images are not required to implement this method exactly, but might find the source to be a useful starting point.
If there have been any severity 3 alerts, this method will return an error, as severity 3 messages are fatal and indicate that this instance should not be made into an image at all.
For more information on the System Monitor and severity levels, see System Monitor Status and Resource Metrics.
pUsername The IRIS username to be operated on.
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()