CognosSource
from skipcheck_tm1_testcontainers import CognosSource 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 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 (PrivateImage)COGNOS_INSTALL_VOLUME: a Docker volume holding an install (InstallVolume)COGNOS_ZIP_DIR, optionally withCOGNOS_ZIP: a folder holding IBM's repository zip, and the file name to use from it (Zip)COGNOS_ZIP_URL, optionally withCOGNOS_ZIP_SHA256: a download link for the zip (ZipUrl)TM1_BUNDLE_DIR, if it also holds a Cognos zip (orCOGNOS_ZIPnames one in it): the same downloads folder as TM1
Members
PRIVATE_IMAGE | An image with Cognos built in, for PrivateImage. |
INSTALL_VOLUME | A Docker volume holding an install, for InstallVolume. |
ZIP_DIR | A folder holding IBM's Cognos repository zip, for Zip. |
ZIP | The zip's file name within the zip folder; the newest one if unset. |
ZIP_URL | A download link for IBM's Cognos repository zip, for ZipUrl. |
ZIP_SHA256 | The SHA-256 to check the ZIP_URL download against; optional. |
PrivateImage | |
InstallVolume | |
Zip | |
ZipUrl | |
describe | A short description for logs and messages. |
discover static | The first source set. |
PRIVATE_IMAGE
PRIVATE_IMAGE: ClassVar[str]An image with Cognos built in, for PrivateImage.
INSTALL_VOLUME
INSTALL_VOLUME: ClassVar[str]A Docker volume holding an install, for InstallVolume.
ZIP_DIR
ZIP_DIR: ClassVar[str]A folder holding IBM's Cognos repository zip, for Zip.
ZIP
ZIP: ClassVar[str]The zip's file name within the zip folder; the newest one if unset.
ZIP_URL
ZIP_URL: ClassVar[str]A download link for IBM's Cognos repository zip, for ZipUrl.
ZIP_SHA256
ZIP_SHA256: ClassVar[str]The SHA-256 to check the ZIP_URL download against; optional.
PrivateImage
PrivateImage: ClassVar[type[_CognosPrivateImage]]InstallVolume
InstallVolume: ClassVar[type[_CognosInstallVolume]]Zip
Zip: ClassVar[type[_CognosZip]]ZipUrl
ZipUrl: ClassVar[type[_CognosZipUrl]]describe
describe() -> strA short description for logs and messages. Never includes a URL's query string.
discover
staticdiscover(lookup: Lookup | None = None) -> CognosSource | NoneThe first source set: COGNOS_PRIVATE_IMAGE, COGNOS_INSTALL_VOLUME, COGNOS_ZIP_DIR (with COGNOS_ZIP), COGNOS_ZIP_URL (with COGNOS_ZIP_SHA256), then TM1_BUNDLE_DIR when it holds a casrv-*-linuxi38664h.zip.