skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

CognosSource.Zip

using Skipcheck.Tm1.Testcontainers;

A folder holding IBM's casrv-*-linuxi38664h.zip, mounted read-only. Each container installs Cognos from it when it starts.

Members

Zip constructorA zip folder, and the file in it (null for the newest).
Dir propertyThe folder, absolute.
File propertyThe zip's file name, or null for the newest in Dir.
Describe
PrivateImageSetting staticThe setting naming an image with Cognos built in.
InstallVolumeSetting staticThe setting naming a Docker volume holding an install.
ZipDir staticThe setting naming the folder holding IBM's zip.
ZipSetting staticThe setting naming the zip in ZipDir (the newest otherwise).
ZipUrlSetting staticThe setting holding a download link for the zip.
ZipSha256 staticThe setting holding the zip's SHA-256.
Discover staticThe first source set, from AppContext switches or environment variables; null when none is.
Discover staticThe first source set, in this order.

Zip

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

A zip 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 zip's file name, or null for the newest in Dir.

Describe

string Describe()

PrivateImageSetting

static
const string PrivateImageSetting

The setting naming an image with Cognos built in.

InstallVolumeSetting

static
const string InstallVolumeSetting

The setting naming a Docker volume holding an install.

ZipDir

static
const string ZipDir

The setting naming the folder holding IBM's zip.

ZipSetting

static
const string ZipSetting

The setting naming the zip in ZipDir (the newest otherwise).

ZipUrlSetting

static
const string ZipUrlSetting

The setting holding a download link for the zip.

ZipSha256

static
const string ZipSha256

The setting holding the zip's SHA-256.

Discover

static
CognosSource? Discover()

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

Throws

ArgumentException
A source is set but wrong.

Discover

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

The first source set, in this order: COGNOS_PRIVATE_IMAGE, COGNOS_INSTALL_VOLUME, COGNOS_ZIP_DIR (with COGNOS_ZIP), COGNOS_ZIP_URL (with COGNOS_ZIP_SHA256), then TM1_BUNDLE_DIR if it holds a casrv-*-linuxi38664h.zip (or COGNOS_ZIP is set).