CognosSource.Zip
import { CognosSource } from "@skipcheck/tm1-testcontainers"; A folder holding IBM's casrv-*-linuxi38664h.zip, mounted read-only. Each
container installs Cognos from it when it starts.
Members
dir property | The folder, absolute. |
file property | The zip's file name within dir, or undefined for the newest one. |
Zip constructor | @throws IllegalArgumentException if the folder isn't there, or the file isn't in it |
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). |
dir
propertydir: stringThe folder, absolute.
file
propertyfile: string | undefinedThe zip's file name within dir, or undefined for the newest one.
Zip
constructorconstructor(dir: string, file?: string | null)@throws IllegalArgumentException if the folder isn't there, or the file isn't in it
describe
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