Containerized Service

When you install the Spotfire Service for Python on a Linux computer, by default, it is configured to use a Docker® container. A containerized Spotfire Service for Python is available only for Linux installations.

To use a containerized Spotfire Service for Python on a Linux system, download and install Docker. (Currently, using containerized Spotfire Service for Python is supported only on a Linux system.)
  • If you have not yet installed the Spotfire Service for Python, install Docker first, and then install Spotfire Service for Python.
  • If you have already installed Spotfire Service for Python before installing Docker, then stop Spotfire Service for Python, install Docker, set the configuration to use Docker, and then restart Spotfire Service for Python.
The version of Docker you use depends on your Linux system. See the system requirements for the recommended version. See www.docker.com for more information about Docker.

The primary benefit of installing and using Spotfire Service for Python in a container is that it operates the service in a "sandbox", so the Python engine does not have access to the host file system. (For more information about script and data function trust, see the Spotfire® Analyst User's Guide). Running Spotfire Service for Python in a container results in negligible performance impact.

The only container framework with which we developed and tested Spotfire Service for Python is Docker. We do not provide Docker with the base installation; however, you must have Docker installed for Spotfire Service for Python to work properly out of the box. The service downloads and builds a default Docker image based on almalinux:8.10 from Docker Hub. While you cannot modify the image we provide, you can build and use a different Docker image if you have different configuration requirements. This section contains a few examples of specifying different Docker images. Alternatively, check Docker Hub for an image that might work for you.

You can export and change the configuration options to build and install a customized image. See Configuring the Service for more information. The properties to change in the configuration are the following.

After you install and configure both the container and Spotfire Service for Python, you can start the service. When the service starts, containers are created as needed.