skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1EngineSource.Bundle

using 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

Bundle constructorA package folder, and the file in it (null for the newest).
Dir propertyThe folder, absolute.
File propertyThe package's file name, or null for the newest in Dir.
Describe
PrivateImageSetting staticThe setting naming an image with TM1 v12 built in.
HomeDir staticThe setting naming an install the image made, as a folder.
InstallVolumeSetting staticThe setting naming a Docker volume holding an install.
BundleDir staticThe setting naming the folder holding IBM's package.
BundleSetting staticThe setting naming the package's file in BundleDir (the newest otherwise).
BundleUrlSetting staticThe setting holding a download link for IBM's package.
BundleSha256 staticThe setting holding the package's SHA-256, checked after the download.
Discover staticThe first source set, from AppContext switches or environment variables; null when none is.
Discover staticThe first source set, looking settings up with lookup, in this order.

Bundle

constructor
Bundle(string dir, string? file = null)

A package folder, and the file in it (null for the newest).

Throws

ArgumentException
The folder isn't there, or the file isn't in it.

Dir

property
string Dir

The folder, absolute.

File

property
string? File

The package's file name, or null for the newest in Dir.

Describe

string Describe()

PrivateImageSetting

static
const string PrivateImageSetting

The setting naming an image with TM1 v12 built in.

HomeDir

static
const string HomeDir

The setting naming an install the image made, as a folder.

InstallVolumeSetting

static
const string InstallVolumeSetting

The setting naming a Docker volume holding an install.

BundleDir

static
const string BundleDir

The setting naming the folder holding IBM's package.

BundleSetting

static
const string BundleSetting

The setting naming the package's file in BundleDir (the newest otherwise).

BundleUrlSetting

static
const string BundleUrlSetting

The setting holding a download link for IBM's package.

BundleSha256

static
const string BundleSha256

The setting holding the package's SHA-256, checked after the download.

Discover

static
Tm1EngineSource? Discover()

The first source set, from AppContext switches or environment variables; null when none is.

Throws

ArgumentException
A source is set but wrong (a folder that isn't there, say): a test should fail on that, not skip.

Discover

static
Tm1EngineSource? Discover(Func<string, string?> lookup)

The first source set, looking settings up with lookup, in this order: TM1_ENGINE_PRIVATE_IMAGE, TM1_ENGINE_HOME_DIR, TM1_ENGINE_INSTALL_VOLUME, TM1_ENGINE_BUNDLE_DIR (with TM1_ENGINE_BUNDLE), TM1_ENGINE_BUNDLE_URL (with TM1_ENGINE_BUNDLE_SHA256), then TM1_BUNDLE_DIR, TM1 11's downloads folder, if it holds a tm1-v*-standalone-linux.tgz (or TM1_ENGINE_BUNDLE is set): one folder then serves both versions. Blank settings count as unset.

Throws

ArgumentException
A setting is present but wrong.