skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1EngineSource.Bundle

import { Tm1EngineSource } from "@skipcheck/tm1-testcontainers";

A folder holding IBM's tm1-v<version>-standalone-linux.tgz, mounted read-only. The image installs TM1 from it on first start into a shared cache volume, so later starts are fast. The folder can hold TM1 11, TM1 Web and Cognos downloads too: each image picks its own.

Members

dir propertyThe folder holding the package, absolute.
file propertyThe package's file name within dir, or undefined for the newest one.
Bundle constructor@throws IllegalArgumentException if the folder isn't there, or the file isn't in it
describe
PRIVATE_IMAGE propertySettings read by Tm1EngineSource.discover, in the order they're tried.
HOME_DIR propertyAn install the image made, as a folder, for Tm1EngineSource.InstallDir.
INSTALL_VOLUME propertyA Docker volume holding an install, for Tm1EngineSource.InstallVolume.
BUNDLE_DIR propertyA folder holding IBM's package, for Tm1EngineSource.Bundle.
BUNDLE propertyThe package's file name within Tm1EngineSource.BUNDLE_DIR; the newest one if unset.
BUNDLE_URL propertyA download link for IBM's package, for Tm1EngineSource.BundleUrl.
BUNDLE_SHA256 propertyThe SHA-256 to check the Tm1EngineSource.BUNDLE_URL download against; optional.
toStringThe description (describe), for logs.
[inspect.custom]As toString.
discover staticFinds a source using lookup to read each setting (environment variables by default).

dir

property
dir: string

The folder holding the package, absolute.

file

property
file: string | undefined

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

Bundle

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

Settings read by Tm1EngineSource.discover, in the order they're tried.

HOME_DIR

property
static HOME_DIR

An install the image made, as a folder, for Tm1EngineSource.InstallDir.

INSTALL_VOLUME

property
static INSTALL_VOLUME

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

BUNDLE_DIR

property
static BUNDLE_DIR

A folder holding IBM's package, for Tm1EngineSource.Bundle.

BUNDLE

property
static BUNDLE

The package's file name within Tm1EngineSource.BUNDLE_DIR; the newest one if unset.

BUNDLE_URL

property
static BUNDLE_URL

A download link for IBM's package, for Tm1EngineSource.BundleUrl.

BUNDLE_SHA256

property
static BUNDLE_SHA256

The SHA-256 to check the Tm1EngineSource.BUNDLE_URL download against; optional.

toString

toString(): string

The description (describe), for logs.

[inspect.custom]

[inspect.custom](): string

As toString: console.log never shows a URL's secrets either.

discover

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

Finds a source using lookup to read each setting (environment variables by default). Blank values count as unset.

Returns

the first source found, or undefined if none is configured

Throws

IllegalArgumentException if a setting is present but invalid, such as a folder that doesn't exist. A wrong setting fails rather than silently skipping the tests.