CognosSource
using Skipcheck.Tm1.Testcontainers; Where a CognosContainer gets IBM Cognos Analytics from.
The cognos-server image contains no IBM software, so every container needs one
of these. Cognos writes into its install while it runs, so unlike TM1 an install can't
be mounted read-only and shared: a CognosSource.PrivateImage is the fastest source, and safe
for containers in parallel, because Docker gives each container its own copy-on-write
copy. The zip sources install Cognos into every new container (about a minute, and 10
GB).
Discover finds one from the environment. Each setting is read first as a
system property and then as an environment variable, under the same name. The names
match the cognos-server image's settings. The first source found wins, in this
order:
COGNOS_PRIVATE_IMAGE: an image with Cognos built in (CognosSource.PrivateImage)COGNOS_INSTALL_VOLUME: a Docker volume holding an install (CognosSource.InstallVolume)COGNOS_ZIP_DIR, optionally withCOGNOS_ZIP: a folder holding IBM's repository zip, and the file name to use from it (CognosSource.Zip)COGNOS_ZIP_URL, optionally withCOGNOS_ZIP_SHA256: a download link for the zip (CognosSource.ZipUrl)TM1_BUNDLE_DIR, if it also holds a Cognos zip (orCOGNOS_ZIPnames one in it): the same downloads folder as TM1
Members
PrivateImageSetting static | The setting naming an image with Cognos built in. |
InstallVolumeSetting static | The setting naming a Docker volume holding an install. |
ZipDir static | The setting naming the folder holding IBM's zip. |
ZipSetting static | The setting naming the zip in ZipDir (the newest otherwise). |
ZipUrlSetting static | The setting holding a download link for the zip. |
ZipSha256 static | The setting holding the zip's SHA-256. |
Describe | Where Cognos comes from, for logs. |
Discover static | The first source set, from AppContext switches or environment variables; null when none is. |
Discover static | The first source set, in this order. |
PrivateImageSetting
staticconst string PrivateImageSettingThe setting naming an image with Cognos built in.
InstallVolumeSetting
staticconst string InstallVolumeSettingThe setting naming a Docker volume holding an install.
ZipDir
staticconst string ZipDirThe setting naming the folder holding IBM's zip.
ZipSetting
staticconst string ZipSettingThe setting naming the zip in ZipDir (the newest otherwise).
ZipUrlSetting
staticconst string ZipUrlSettingThe setting holding a download link for the zip.
ZipSha256
staticconst string ZipSha256The setting holding the zip's SHA-256.
Describe
string Describe()Where Cognos comes from, for logs: never a URL's credentials or query string.
Discover
staticCognosSource? Discover()The first source set, from AppContext switches or environment
variables; null when none is.
Throws
ArgumentException- A source is set but wrong.
Discover
staticCognosSource? 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).