Tm1Source.InstallVolume
using Skipcheck.Tm1.Testcontainers; A named Docker volume holding a TM1 install, such as the one the tm1-server
compose setup creates (tm1_tm1-install). If the volume is empty, the
container fails to start, since there's nothing to install from.
Members
InstallVolume constructor | An install volume. |
Name property | The volume's name. |
Describe | |
PrivateImageSetting static | The setting naming an image with TM1 built in. |
HomeDir static | The setting naming an installed tm1_64 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. |
InstallVolume
constructorInstallVolume(string name)An install volume.
Name
propertystring NameThe volume's name.
Describe
string Describe()PrivateImageSetting
staticconst string PrivateImageSettingThe setting naming an image with TM1 built in.
HomeDir
staticconst string HomeDirThe setting naming an installed tm1_64 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
staticTm1Source? 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
staticTm1Source? Discover(Func<string, string?> lookup)The first source set, looking settings up with lookup, in this
order: TM1_PRIVATE_IMAGE, TM1_HOME_DIR, TM1_INSTALL_VOLUME,
TM1_BUNDLE_DIR (with TM1_BUNDLE), TM1_BUNDLE_URL (with
TM1_BUNDLE_SHA256). Blank settings count as unset.