Tm1WebSource.Bundle
using Skipcheck.Tm1.Testcontainers; A folder holding IBM's tm1web-*-linuxi38664h_bundle.tar.gz, mounted
read-only. The image installs TM1 Web from it on first start into a shared cache
volume, so later starts are faster.
Members
Bundle constructor | A bundle folder, and the file in it (null for the newest). |
Dir property | The folder, absolute. |
File property | The bundle's file name, or null for the newest in Dir. |
Describe | |
PrivateImageSetting static | The setting naming an image with TM1 Web built in. |
HomeDir static | The setting naming an installed tm1web folder. |
InstallVolumeSetting static | The setting naming a Docker volume holding an install. |
BundleDir static | The setting naming the folder holding IBM's bundle. |
BundleSetting static | The setting naming the bundle file in BundleDir (the newest otherwise). |
BundleUrlSetting static | The setting holding a download link for the bundle. |
BundleSha256 static | The setting holding the bundle's SHA-256, checked after the download. |
Discover static | The first source set, from AppContext switches or environment variables; null when none is. |
Discover static | The first source set, looking settings up with lookup, in this order. |
Bundle
constructorBundle(string dir, string? file = null)A bundle 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
propertystring DirThe folder, absolute.
File
propertystring? FileThe bundle's file name, or null for the newest in Dir.
Describe
string Describe()PrivateImageSetting
staticconst string PrivateImageSettingThe setting naming an image with TM1 Web built in.
HomeDir
staticconst string HomeDirThe setting naming an installed tm1web folder.
InstallVolumeSetting
staticconst string InstallVolumeSettingThe setting naming a Docker volume holding an install.
BundleDir
staticconst string BundleDirThe setting naming the folder holding IBM's bundle.
BundleSetting
staticconst string BundleSettingThe setting naming the bundle file in BundleDir (the newest otherwise).
BundleUrlSetting
staticconst string BundleUrlSettingThe setting holding a download link for the bundle.
BundleSha256
staticconst string BundleSha256The setting holding the bundle's SHA-256, checked after the download.
Discover
staticTm1WebSource? 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
staticTm1WebSource? Discover(Func<string, string?> lookup)The first source set, looking settings up with lookup, in this
order: TM1_WEB_PRIVATE_IMAGE, TM1_WEB_HOME_DIR, TM1_WEB_INSTALL_VOLUME,
TM1_WEB_BUNDLE_DIR (with TM1_WEB_BUNDLE), TM1_WEB_BUNDLE_URL (with
TM1_WEB_BUNDLE_SHA256), then TM1_BUNDLE_DIR if it holds a tm1web-*_bundle.tar.gz
or tm1web-*-linuxi38664h.zip (or TM1_WEB_BUNDLE is set). Blank settings count as unset.