skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1WebSource

from skipcheck_tm1_testcontainers import Tm1WebSource

Where a Tm1WebContainer gets TM1 Web from.

The tm1-web image contains no IBM software, so every container needs one of these. They mirror Tm1Source, with TM1_WEB_ settings, and the image's own sources (see the image's README).

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 tm1-server compose settings. The first source found wins, in this order:

  1. TM1_WEB_PRIVATE_IMAGE: an image with TM1 Web built in (PrivateImage)
  2. TM1_WEB_HOME_DIR: an installed tm1web folder (InstallDir)
  3. TM1_WEB_INSTALL_VOLUME: a Docker volume holding an install (InstallVolume)
  4. TM1_WEB_BUNDLE_DIR, optionally with TM1_WEB_BUNDLE: a folder holding IBM's bundle, and the file name to use from it (Bundle)
  5. TM1_WEB_BUNDLE_URL, optionally with TM1_WEB_BUNDLE_SHA256: a download link for the bundle (BundleUrl)
  6. TM1_BUNDLE_DIR, if it also holds a TM1 Web bundle (or TM1_WEB_BUNDLE names one in it): the same downloads folder as TM1, as in the compose setup

Members

PRIVATE_IMAGEAn image with TM1 Web built in, for PrivateImage.
HOME_DIRAn installed tm1web folder, for InstallDir.
INSTALL_VOLUMEA Docker volume holding an install, for InstallVolume.
BUNDLE_DIRA folder holding IBM's TM1 Web bundle, for Bundle.
BUNDLEThe bundle's file name within the bundle folder; the newest one if unset.
BUNDLE_URLA download link for IBM's TM1 Web bundle, for BundleUrl.
BUNDLE_SHA256The SHA-256 to check the BUNDLE_URL download against; optional.
PrivateImage
InstallDir
InstallVolume
Bundle
BundleUrl
describeA short description for logs and messages.
discover staticThe first source set, as Tm1Source.discover with TM1_WEB_*, then TM1_BUNDLE_DIR when it holds a tm1web-* bundle.

PRIVATE_IMAGE

PRIVATE_IMAGE: ClassVar[str]

An image with TM1 Web built in, for PrivateImage.

HOME_DIR

HOME_DIR: ClassVar[str]

An installed tm1web folder, for InstallDir.

INSTALL_VOLUME

INSTALL_VOLUME: ClassVar[str]

A Docker volume holding an install, for InstallVolume.

BUNDLE_DIR

BUNDLE_DIR: ClassVar[str]

A folder holding IBM's TM1 Web bundle, for Bundle.

BUNDLE

BUNDLE: ClassVar[str]

The bundle's file name within the bundle folder; the newest one if unset.

BUNDLE_URL

BUNDLE_URL: ClassVar[str]

A download link for IBM's TM1 Web bundle, for BundleUrl.

BUNDLE_SHA256

BUNDLE_SHA256: ClassVar[str]

The SHA-256 to check the BUNDLE_URL download against; optional.

PrivateImage

PrivateImage: ClassVar[type[_WebPrivateImage]]

InstallDir

InstallDir: ClassVar[type[_WebInstallDir]]

InstallVolume

InstallVolume: ClassVar[type[_WebInstallVolume]]

Bundle

Bundle: ClassVar[type[_WebBundle]]

BundleUrl

BundleUrl: ClassVar[type[_WebBundleUrl]]

describe

describe() -> str

A short description for logs and messages. Never includes a URL's query string.

discover

static
discover(lookup: Lookup | None = None) -> Tm1WebSource | None

The first source set, as Tm1Source.discover with TM1_WEB_*, then TM1_BUNDLE_DIR when it holds a tm1web-* bundle.