Interface CognosSource

All Known Implementing Classes:
CognosSource.InstallVolume, CognosSource.PrivateImage, CognosSource.Zip, CognosSource.ZipUrl

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 CognosSource.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:

  1. COGNOS_PRIVATE_IMAGE: an image with Cognos built in (CognosSource.PrivateImage)
  2. COGNOS_INSTALL_VOLUME: a Docker volume holding an install (CognosSource.InstallVolume)
  3. COGNOS_ZIP_DIR, optionally with COGNOS_ZIP: a folder holding IBM's repository zip, and the file name to use from it (CognosSource.Zip)
  4. COGNOS_ZIP_URL, optionally with COGNOS_ZIP_SHA256: a download link for the zip (CognosSource.ZipUrl)
  5. TM1_BUNDLE_DIR, if it also holds a Cognos zip (or COGNOS_ZIP names one in it): the same downloads folder as TM1