Configuring a Custom Startup Script to Build a Custom Docker Image
You can provide a startup script that is installed and configured on your Spotfire Server to build a custom Docker image for your Spotfire Service for Python.
About this task
Before you begin
- You must have a Linux computer where the node manager is installed. (Your node manager and Spotfire Server can be on different computers).
- If you are using the script to build the base Docker image, you must have a connection to the internet. (A connection to the internet is not required if you are using a locally-available Docker image.)
Custom docker images for the Python service must contain the following.
- The Java 11 Runtime.
- The JAVA_HOME environmental variable, correctly defined.
ENV JAVA_HOME=</correct/path/to/java>
Procedure
What to do next
If problems occur, troubleshoot by examining the Dockerfile that Spotfire Service for Python writes. After the service runs, this Dockerfile is available at the root service directory on the computer running the node manager. For example, /opt/tibco/tsnm/<server version_#>/nm/services/Python service Linux-<version_#_ID>/dockerfile/Dockerfile
Parent topic: Containerized Spotfire Service for Python