Tm1EngineSource.InstallDir
using Skipcheck.Tm1.Testcontainers; A TM1 v12 install the tm1-engine image made (install as its
command), as a folder: the one containing bin/tm1sd.exe. Mounted read-only.
An install made by IBM's installer isn't one.
Members
InstallDir constructor | An install folder. |
Dir property | The folder, absolute. |
Describe | |
PrivateImageSetting static | The setting naming an image with TM1 v12 built in. |
HomeDir static | The setting naming an install the image made, as a folder. |
InstallVolumeSetting static | The setting naming a Docker volume holding an install. |
BundleDir static | The setting naming the folder holding IBM's package. |
BundleSetting static | The setting naming the package's file in BundleDir (the newest otherwise). |
BundleUrlSetting static | The setting holding a download link for IBM's package. |
BundleSha256 static | The setting holding the package'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. |
InstallDir
constructorInstallDir(string dir)An install folder.
Throws
ArgumentException- It has no
bin/tm1sd.exe.
Dir
propertystring DirThe folder, absolute.
Describe
string Describe()PrivateImageSetting
staticconst string PrivateImageSettingThe setting naming an image with TM1 v12 built in.
HomeDir
staticconst string HomeDirThe setting naming an install the image made, as a folder.
InstallVolumeSetting
staticconst string InstallVolumeSettingThe setting naming a Docker volume holding an install.
BundleDir
staticconst string BundleDirThe setting naming the folder holding IBM's package.
BundleSetting
staticconst string BundleSettingThe setting naming the package's file in BundleDir (the newest otherwise).
BundleUrlSetting
staticconst string BundleUrlSettingThe setting holding a download link for IBM's package.
BundleSha256
staticconst string BundleSha256The setting holding the package's SHA-256, checked after the download.
Discover
staticTm1EngineSource? 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
staticTm1EngineSource? 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.