skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

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 propertyThe folder, absolute.
file propertyThe 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 propertyAn image with Cognos built in, for CognosSource.PrivateImage.
INSTALL_VOLUME propertyA Docker volume holding an install, for CognosSource.InstallVolume.
ZIP_DIR propertyA folder holding IBM's zip, for CognosSource.Zip.
ZIP propertyThe zip's file name within CognosSource.ZIP_DIR; the newest one if unset.
ZIP_URL propertyA download link for IBM's zip, for CognosSource.ZipUrl.
ZIP_SHA256 propertyThe SHA-256 to check the CognosSource.ZIP_URL download against; optional.
toStringThe description (describe), for logs.
[inspect.custom]How Node prints it.
discover staticFinds a source using lookup to read each setting (environment variables by default).

dir

property
dir: string

The folder, absolute.

file

property
file: string | undefined

The zip's file name within dir, or undefined for the newest one.

Zip

constructor
constructor(dir: string, file?: string | null)

@throws IllegalArgumentException if the folder isn't there, or the file isn't in it

describe

describe(): string

PRIVATE_IMAGE

property
static PRIVATE_IMAGE

An image with Cognos built in, for CognosSource.PrivateImage.

INSTALL_VOLUME

property
static INSTALL_VOLUME

A Docker volume holding an install, for CognosSource.InstallVolume.

ZIP_DIR

property
static ZIP_DIR

A folder holding IBM's zip, for CognosSource.Zip.

ZIP

property
static ZIP

The zip's file name within CognosSource.ZIP_DIR; the newest one if unset.

ZIP_URL

property
static ZIP_URL

A download link for IBM's zip, for CognosSource.ZipUrl.

ZIP_SHA256

property
static ZIP_SHA256

The SHA-256 to check the CognosSource.ZIP_URL download against; optional.

toString

toString(): string

The description (describe), for logs.

[inspect.custom]

[inspect.custom](): string

How Node prints it: the class and its description, never a URL's credentials or query.

discover

static
static discover(lookup: Lookup = Settings.get): CognosSource | undefined

Finds a source using lookup to read each setting (environment variables by default).

Returns

the first source found, or undefined if none is configured

Throws

IllegalArgumentException if a setting is present but invalid