CognosSource.PrivateImage
import { CognosSource } from "@skipcheck/tm1-testcontainers"; An image built on cognos-server with Cognos inside (see the image's
examples/private-image), from a private registry or only on your
machine. It contains IBM software, so it must never be pushed anywhere public.
Members
PrivateImage constructor | |
image property | |
describe | |
PRIVATE_IMAGE property | An image with Cognos built in, for CognosSource.PrivateImage. |
INSTALL_VOLUME property | A Docker volume holding an install, for CognosSource.InstallVolume. |
ZIP_DIR property | A folder holding IBM's zip, for CognosSource.Zip. |
ZIP property | The zip's file name within CognosSource.ZIP_DIR; the newest one if unset. |
ZIP_URL property | A download link for IBM's zip, for CognosSource.ZipUrl. |
ZIP_SHA256 property | The SHA-256 to check the CognosSource.ZIP_URL download against; optional. |
toString | The description (describe), for logs. |
[inspect.custom] | How Node prints it. |
discover static | Finds a source using lookup to read each setting (environment variables by default). |
PrivateImage
constructorconstructor(readonly image: string)image
propertyreadonly image: stringdescribe
describe(): stringPRIVATE_IMAGE
propertystatic PRIVATE_IMAGEAn image with Cognos built in, for CognosSource.PrivateImage.
INSTALL_VOLUME
propertystatic INSTALL_VOLUMEA Docker volume holding an install, for CognosSource.InstallVolume.
ZIP_DIR
propertystatic ZIP_DIRA folder holding IBM's zip, for CognosSource.Zip.
ZIP
propertystatic ZIPThe zip's file name within CognosSource.ZIP_DIR; the newest one if unset.
ZIP_URL
propertystatic ZIP_URLA download link for IBM's zip, for CognosSource.ZipUrl.
ZIP_SHA256
propertystatic ZIP_SHA256The SHA-256 to check the CognosSource.ZIP_URL download against; optional.
toString
toString(): stringThe description (describe), for logs.
[inspect.custom]
[inspect.custom](): stringHow Node prints it: the class and its description, never a URL's credentials or query.
discover
staticstatic discover(lookup: Lookup = Settings.get): CognosSource | undefinedFinds a source using lookup to read each setting (environment variables by default).
Returns
- the first source found, or
undefinedif none is configured
Throws
- IllegalArgumentException if a setting is present but invalid