skipcheck

Planning Analytics in Docker · tm1-server · Getting started

Getting started with tm1-server

This guide takes you from nothing to a running IBM Planning Analytics (TM1) server on your own computer, on Mac, Windows or Linux. It takes about 15 minutes, most of it installing Docker.

Prefer a page that shows only your steps? The interactive setup guide at https://skipcheck.io/tm1/ asks the same questions and shows just the commands for your answers, including the setup script one-liner with your choices filled in.

Want more than one TM1 server, or TM1 Web, PAW or Cognos? This guide sets up one TM1 server, and IBM's SData sample if you like. pa-setup sets up any combination from one file, pa-environment.yaml. Install Docker as in Step 1 here, then follow its README.

You make three choices along the way. Pick the option that fits; you can change any of them later:

The fast way: the setup script

Once Docker is installed (Step 1), one command does Steps 2 to 5 for you. It asks the same questions as this guide, checks your computer as it goes (Docker, Rosetta on Apple Silicon, WSL 2 on Windows, free ports, the right bundle), starts TM1 and waits until it's ready:

# Mac / Linux (Terminal)
curl -fsSL https://skipcheck.io/tm1/setup.sh | sh
# Windows (PowerShell)
irm https://skipcheck.io/tm1/setup.ps1 | iex

To skip the questions, give the answers as options. For example, to use the bundle in your Downloads folder and also start the SData sample:

# Mac / Linux
curl -fsSL https://skipcheck.io/tm1/setup.sh | sh -s -- --bundle ~/Downloads/tm1server-2.1.19-26031712-linuxi38664h_bundle.tar.gz --samples
# Windows
& ([scriptblock]::Create((irm https://skipcheck.io/tm1/setup.ps1))) -Bundle "$HOME\Downloads\tm1server-2.1.19-26031712-linuxi38664h_bundle.tar.gz" -Samples

Add --help (-Help on Windows) to see every option, or let https://skipcheck.io/tm1/ build the command for your choices. Without a terminal (in CI, or with --yes) it never asks: a missing answer is an error naming the option to add. Running it again is safe: it keeps your settings and the installed TM1, and says what it reused.

The rest of this guide does the same steps by hand, and explains each one.

Before you start: this project contains no IBM software. You need your own licensed copy of IBM Planning Analytics TM1 Server, and you're responsible for following your IBM license terms.

Contents: 1. Install Docker · 2. Get tm1-server · 3. TM1 source · 4. Your files · 5. Start TM1 · 6. Connect · Everyday commands · Troubleshooting · Removing everything


Step 1: Install Docker

Docker runs TM1 in an isolated Linux environment called a container. TM1 Server only exists for Linux on Intel/AMD (x86-64) processors, and Docker handles that on every platform.

You need about 4 GB of free memory and 2 GB of disk space.

Mac
  1. Check your Mac's processor: Apple menu → About This Mac. "Chip: Apple M…" is Apple Silicon; "Processor: Intel…" is Intel.
  2. Download and install Docker Desktop from https://www.docker.com/products/docker-desktop/. Pick the Apple Silicon or Intel version to match.
  3. Open Docker Desktop and accept the terms. Wait until it says the engine is running.
  4. Apple Silicon only: TM1 needs Apple's Rosetta translation layer.
    1. Open Terminal (Applications → Utilities) and run:
      softwareupdate --install-rosetta --agree-to-license
    2. In Docker Desktop, open Settings → General, turn on Use Rosetta for x86_64/amd64 emulation on Apple Silicon, and click Apply & restart.

You'll type the commands in the rest of this guide into Terminal.

Windows
  1. Use Windows 10 (22H2) or Windows 11, on an Intel or AMD PC. (Windows on ARM, such as Snapdragon laptops, also works but runs TM1 more slowly, through emulation.)
  2. Download and install Docker Desktop from https://www.docker.com/products/docker-desktop/. Keep Use WSL 2 selected during setup. Restart if asked.
  3. Open Docker Desktop and accept the terms. Wait until it says the engine is running.
  4. Only if you'll work from the source code (Step 2, choice S): install Git for Windows from https://git-scm.com/download/win.

You'll type the commands in the rest of this guide into PowerShell (Start menu → "PowerShell"). Where Mac/Linux and Windows commands differ, both are shown.

Linux
  1. Install Docker Engine and the Compose plugin for your distribution, by following https://docs.docker.com/engine/install/.
  2. Let your user run Docker without sudo, then log out and back in:
    sudo usermod -aG docker "$USER"
  3. Check it works: docker run --rm hello-world.
  4. ARM machines only (e.g. Raspberry Pi, Ampere servers): enable x86-64 emulation. It's slow, so prefer an x86-64 machine:
    docker run --privileged --rm tonistiigi/binfmt --install amd64

Docker Desktop for Linux also works, if you'd rather have the same app as on Mac and Windows.

Check: docker compose version prints a version number.


Step 2: Get tm1-server

Pick one. If you're not sure, choose R.

Choice Best for
R Use the published image (recommended): download two small files, nothing to build Everyone who just wants a TM1 server
S Work from the source code: clone the repository and build the image yourself Contributors, and anyone changing the image

Make a folder for your TM1 server and download the compose file and example settings into it:

# Mac / Linux
mkdir tm1 && cd tm1
curl -fsSLO https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/master/docker/tm1-server/compose.yaml
curl -fsSLO https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/master/docker/tm1-server/.env.example
mkdir bundles
# Windows
mkdir tm1; cd tm1
$base = "https://raw.githubusercontent.com/ajmyers/skipcheck-tm1/master/docker/tm1-server"
Invoke-WebRequest "$base/compose.yaml" -OutFile compose.yaml
Invoke-WebRequest "$base/.env.example" -OutFile .env.example
mkdir bundles

Docker downloads the image itself the first time you start TM1. Every command from here on runs in this tm1 folder.

→ Continue to Step 3.

S. Work from the source code

Clone the repository, build the image, and tell compose to use your build:

# Mac / Linux
git clone https://github.com/ajmyers/skipcheck-tm1.git
cd skipcheck-tm1/docker/tm1-server
docker build --platform linux/amd64 -t tm1-server:local .
echo "TM1_SERVER_IMAGE=tm1-server:local" >> .env
# Windows
git clone https://github.com/ajmyers/skipcheck-tm1.git
cd skipcheck-tm1\docker\tm1-server
docker build --platform linux/amd64 -t tm1-server:local .
Add-Content .env "TM1_SERVER_IMAGE=tm1-server:local"

The build takes about a minute. Always include --platform linux/amd64; see Troubleshooting. Every command from here on runs in this docker/tm1-server folder.

→ Continue to Step 3.


Step 3: Where does TM1 come from?

Pick one. If you're not sure, choose A.

You have... Best for
A The IBM download file (tm1server-...-linuxi38664h_bundle.tar.gz) Most people
B That file in cloud storage (S3, R2, Azure, GCS, a web server) Teams, CI
C An installed tm1_64 folder, copied from a Linux TM1 server Matching an existing server exactly
D A private Docker image someone built with TM1 inside Teams and CI at scale

Getting the file from IBM: download IBM Planning Analytics TM1 Server for Linux from IBM Passport Advantage or Fix Central (depending on your entitlement). It's named tm1server-<version>-linuxi38664h_bundle.tar.gz, about 500 MB. Get the Linux file even if you're on Mac or Windows: it's what runs inside the container.

Copy the file into the bundles folder:

# Mac / Linux
cp ~/Downloads/tm1server-*_bundle.tar.gz bundles/
# Windows
Copy-Item $HOME\Downloads\tm1server-*_bundle.tar.gz bundles\

That's all. TM1 is installed from it once, on first start (about 15 seconds), into a Docker volume, and reused after that. If you have several versions in bundles, the newest is used; to pick one, see Changing settings (TM1_BUNDLE).

Prefer to keep the file where it is? Instead of copying it, point to its folder in a .env file (see Changing settings):

TM1_BUNDLE_DIR=/Users/you/Downloads

On Windows, write paths with forward slashes: TM1_BUNDLE_DIR=C:/Users/you/Downloads.

→ Continue to Step 4.

B. The IBM download in cloud storage

Two ways. Both keep your cloud credentials out of the container.

B1. A download link. Create a link the container can download from, such as a pre-signed URL (aws s3 presign, R2/GCS signed URLs, an Azure SAS link) or any private web server. Put it in a .env file (see Changing settings):

TM1_BUNDLE_URL=https://my-bucket.s3.amazonaws.com/tm1server-2.1.19-...?X-Amz-...
# optional, but recommended: the file's SHA-256, checked before installing
TM1_BUNDLE_SHA256=6b476618ff6d...

TM1 is downloaded and installed on first start. Logs show the link without its query string, so the credentials in a pre-signed link aren't printed.

B2. Stream it in with your own cloud tools. Use any command that writes the file to its output, and pipe it into the installer. This only needs doing once per TM1 version, before the first start:

aws s3 cp s3://my-bucket/tm1server-2.1.19-...-linuxi38664h_bundle.tar.gz - \
  | docker compose run --rm -T --no-deps tm1 install -

It works the same with gsutil cat gs://..., az storage blob download --file /dev/stdout ..., curl -fsSL https://..., cat file.tar.gz, and so on.

→ Continue to Step 4.

C. An installed TM1 folder

If you have a TM1 Server installed on Linux (usually /opt/ibm/cognos/tm1_64), copy that whole folder to your computer and point to it in a .env file (see Changing settings):

TM1_HOME_DIR=/Users/you/ibm/tm1_64

The folder must contain bin64/tm1s.exe. It's used as-is; nothing is installed.

→ Continue to Step 4.

D. A private image with TM1 built in

Someone on your team builds an image with TM1 inside, once, and pushes it to your private registry. See examples/private-image. Never push it anywhere public: it contains IBM software. Then point to it in a .env file:

TM1_SERVER_IMAGE=registry.example.com/private/tm1-server:2.1.19

Log in to your registry first (docker login registry.example.com).

→ Continue to Step 4.


Step 4: Where should your files live?

Each TM1 server has three kinds of files: its config (tm1s.cfg), its database (cubes, dimensions, processes) and its logs. Pick one:

Choice What happens
1 In this project's tm1-files folder (default) Created for you on first start. Easy to look at and edit. Kept until you delete them.
2 Start from an existing server's config or database You copy them in before the first start.
3 Somewhere else on your computer Same as 1, in a folder you choose.
4 Nowhere: a throwaway server Everything is deleted when the container is removed.

1. In the tm1-files folder (default)

Nothing to do. After the first start you'll find:

tm1-files/
  tm1/       config/  data/  logs/     ← the "tm1" server (empty database)
  sdata/     config/  data/  logs/     ← IBM's "SData" sample, if you start it
  admin/     logs/                     ← the Admin Server

The config/tm1s.cfg created for you is a sensible default (plain HTTP, sandboxes enabled, TI debugging on). Edit it and restart to change settings.

2. Start from an existing server's config or database

Before the first start, copy them into place:

tm1-files/tm1/config/tm1s.cfg        ← your tm1s.cfg (and tm1s-log.properties, if you have one)
tm1-files/tm1/data/                  ← your database files (*.cub, *.dim, *.pro, ...)

Your tm1s.cfg is used as-is, except for the settings the container depends on: paths, ports and the Admin Server host. Those are adjusted automatically, and every change is printed in the logs. Settings likely to break in a container (such as Cognos/CAM security with no Cognos to reach) are left alone, with a warning. The README lists exactly which settings are adjusted.

3. Somewhere else on your computer

Set the folder in a .env file (see Changing settings). The same tm1/, sdata/ and admin/ folders are created inside it:

TM1_FILES_DIR=/Users/you/tm1-files

4. A throwaway server

Use docker run instead of compose, without mounting any files. This example installs TM1 from your bundles folder (choice A):

# Mac / Linux
docker run --rm -p 8010:8010 -v "$PWD/bundles:/ibm:ro" ghcr.io/ajmyers/tm1-server
# Windows
docker run --rm -p 8010:8010 -v "${PWD}\bundles:/ibm:ro" ghcr.io/ajmyers/tm1-server

If you chose S in Step 2, use tm1-server:local in place of ghcr.io/ajmyers/tm1-server. Press Ctrl+C to stop it, and everything is gone. (This is what automated tests do.)


Step 5: Start TM1

docker compose up -d

The first time, this downloads the image (with choice R) and installs TM1 from your bundle (about 15 seconds). Check that it's ready:

docker compose ps

Wait until tm1 and tm1-admin both show (healthy). Run the command again if they still say starting.

Want IBM's sample database too? Start the SData sample alongside it:

docker compose --profile samples up -d

Step 6: Connect to TM1

Server REST API address Login
tm1 (empty database) http://localhost:8010/api/v1/ user admin, no password
SData (sample) http://localhost:8011/api/v1/ user admin, password apple
Admin Server http://localhost:5895/api/v1/Servers none

Quick check: open http://localhost:8010/api/v1/$metadata in your browser. You should see a long XML document describing TM1's REST API.

Ask TM1 something:

# Mac / Linux
curl -u admin: 'http://localhost:8010/api/v1/Configuration/ProductVersion/$value'
# Windows: use curl.exe, not curl
curl.exe -u admin: "http://localhost:8010/api/v1/Configuration/ProductVersion/`$value"

It prints the TM1 version, e.g. 11.8.03500.6.

From your tools and code, connect with:

You're done. 🎉


Everyday commands

Run these in the docker/tm1-server folder.

To... Run
See what's running docker compose ps
Watch the TM1 log docker compose logs -f tm1 (Ctrl+C to stop watching)
Stop (TM1 saves its data first) docker compose stop
Start again docker compose start (or docker compose up -d)
Restart after editing tm1s.cfg docker compose restart tm1
Stop and remove the containers (your files are kept) docker compose down
Start over with an empty database docker compose down, delete tm1-files/tm1, then docker compose up -d
Update tm1-server (choice R) docker compose pull, then docker compose up -d
Update tm1-server (choice S) git pull, rebuild (docker build --platform linux/amd64 -t tm1-server:local .), then docker compose up -d

TM1's own log files (tm1server.log, tm1s.log, login and event logs) are in tm1-files/tm1/logs.

Changing settings

Settings go in a file called .env in this folder, one NAME=value per line. .env.example lists every setting with an explanation.

Then run docker compose up -d to apply them.

Changing the TM1 version

Your databases in tm1-files are kept across version changes.


Troubleshooting

What you see What to do
Cannot connect to the Docker daemon / docker: command not found Docker isn't running. Open Docker Desktop (Mac/Windows) and wait for it to start, or sudo systemctl start docker (Linux).
ERROR: .../tm1s.exe not found ... does not include IBM software TM1 couldn't be found. Check your Step 3 choice: is the bundle file in bundles? Is TM1_HOME_DIR the folder that contains bin64?
no bundle found The bundles folder (or TM1_BUNDLE_DIR) has no tm1server-*_bundle.tar.gz. Check the file name; it must be the Linux (linuxi38664h) download.
download failed / checksum mismatch The TM1_BUNDLE_URL link expired or is wrong, or the file changed. Create a new link, or update TM1_BUNDLE_SHA256.
port is already allocated / address already in use Something else is using port 8010, 8011 or 5895, perhaps another TM1. Stop it, or change the left-hand port numbers under ports: in compose.yaml (e.g. "9010:8010").
denied, pull access denied or manifest unknown for ghcr.io/ajmyers/tm1-server Docker couldn't download the image. Check your internet connection, and that your network allows ghcr.io. Or build it yourself (Step 2, choice S).
pull access denied for tm1-server Compose is looking for your own build (TM1_SERVER_IMAGE=tm1-server:local) but it doesn't exist. Build it: docker build --platform linux/amd64 -t tm1-server:local .
does not provide the specified platform (linux/amd64) The image was built without --platform linux/amd64. Rebuild with docker build --platform linux/amd64 -t tm1-server:local ..
Stuck at (health: starting) or (unhealthy) Look at the log: docker compose logs tm1. Lines starting [tm1-entrypoint] explain what happened, including any WARNINGs about your tm1s.cfg.
Very slow, or crashes immediately, on an Apple Silicon Mac Rosetta isn't on. Redo Step 1, Mac step 4.
bash\r: not found on Windows Windows line endings got into the files. Run git config --global core.autocrlf input, delete the folder, clone again, and rebuild.
Logins fail, with a warning about IntegratedSecurityMode Your tm1s.cfg uses Cognos (CAM) security, and this setup has no Cognos. Set IntegratedSecurityMode=1 to use TM1's own users, or run TM1 with Cognos through pa-setup.
Changes made in tm1s.cfg don't apply Restart the server: docker compose restart tm1.

Still stuck? Open an issue with the output of docker compose logs tm1.


Removing everything

docker compose --profile samples down       # remove the containers
docker volume rm tm1_tm1-install            # remove the installed TM1 (choice R folder "tm1")
docker volume rm tm1-server_tm1-install     #   or, for choice S
docker image rm ghcr.io/ajmyers/tm1-server tm1-server:local   # remove the image(s)

Then delete the folder (tm1 for choice R), or its tm1-files and bundles contents, if you don't need them.


Next: the README covers everything in more depth: all configuration options, running several TM1 servers, the Admin Server, ports and the install command. To add TM1 Web, PAW or Cognos, or more servers, use pa-setup.

This page is docker/tm1-server/GETTING-STARTED.md on GitHub.