This directory contains the official container recipe for Spotfire® Web Player.
Spotfire® Web Player is a remote application server to enable analysis consumption from web browser and mobile devices.
The Spotfire Web Player generates visualizations that are displayed in the Spotfire web clients and mobile apps.
The Spotfire Server handles client session routing towards Spotfire Web Players instances to optimize resource allocation. It is possible to define Resource Pools and Routing Rules for fine-grained QoS control for different users, groups or analysis.
For a quick overview, see the Introduction to the Spotfire environment.
For more information on the Spotfire product family, see the Spotfire® Documentation.
Note: The easiest and recommended way to build all the Spotfire container images is using the provided containers Makefile
as described in Build the images.
You can also build this image individually. Follow the instructions below or adjust them according to your needs.
Prerequisites:
- You have built the spotfire-workerhost container image.
Steps:
- Copy the
Spotfire.Dxp.netcore-linux.sdn
package into thebuild/
directory within this folder. - Copy language pack files (for example de-DE-netcore.sdn) into the
build/
with the desired language packs to build into the image. These files can be extracted fromSPOT_sfire_server_<version>_languagepack-multi.zip
. - From the
<this-repo>/containers
folder, runmake spotfire-webplayer
to build this image, ormake spotfire-webplayer --dry-run
to just view the commands.
Custom packages (SPKs) can include a cobranding package, for example. You must use the Spotfire® Package Builder console to create the cobranding package for your containerized Web Player. See Creating and deploying a cobranding package for more information.
At build time, put custom spk files in the build/
folder.
Some Spotfire connectors will not be available in the default image unless you install required ODBC driver for the connector. To install additional ODBC drivers container image, you can create a custom Dockerfile. Here's a basic example of how you can do this:
# Start from the default image
FROM spotfire-webplayer:tag
# Switch to root user to install additional packages
USER root
# Install the ODBC driver
RUN echo "Add installation steps here"
# Switch back to the spotfire user
USER spotfire
Replace spotfire-webplayer:tag
with the name and tag of the default spotfire-webplayer image. This image needs to be available before you can use it as a base image for your custom image. After creating this Dockerfile, you can build your custom image with the following command:
docker build -t custom_image:tag -f Dockerfile .
Replace custom_image:tag
with the name and tag you want to give to your custom image. You can then use this image to start a container with the additional ODBC driver installed.
Prerequisites:
- A running spotfire server container instance to connect to.
- Spotfire client packages deployed to a deployment area so that the required licenses exists for the
spotfire-webplayer
to start.
You can start an instance of the Spotfire Web Player container with:
docker run -d --rm -e ACCEPT_EUA=Y \
-e SERVER_BACKEND_ADDRESS=spotfire-server \
spotfire/spotfire-webplayer
Note: This Spotfire container image requires setting the environment variable ACCEPT_EUA
.
By passing the value Y
to the environment variable ACCEPT_EUA
, you agree that your use of the Spotfire software running in this container will be governed by the terms of the Cloud Software Group, Inc. End User Agreement.
You can also start the spotfire-webplayer
with a custom configuration by providing a Spotfire services configuration file:
docker run -d --rm -e ACCEPT_EUA=Y \
-e SERVER_BACKEND_ADDRESS=spotfire-server \
-v "$(pwd)/Spotfire.Dxp.Worker.Web.config:/opt/spotfire/nodemanager/nm/services/WEB_PLAYER/Spotfire.Dxp.Worker.Web.config" \
spotfire/spotfire-webplayer
For more information, see Service configuration files and Service logs configuration.
TSWP_RESOURCEPOOL
- Set to the name of the resource pool thespotfire-webplayer
instance should belong to. Default value: UnsetLOGGING_SERVICELOG_MAX
- Maximum number of web player service log files to save. Default2
LOGGING_SERVICELOG_SIZE
- Maximum size for web player service service log files. Default10MB
Note: See also the Spotfire Node manager environment variables.