Deploying Cuebot

Deploy Cuebot to a server from source or a Docker image

This guide shows you how to build a Docker image to run Cuebot.

Cuebot typically runs on a server and performs a variety of important OpenCue management tasks, including:

  • Managing OpenCue jobs and job submissions.
  • Distributing work to render nodes.
  • Responding to API requests from client-side tools such as CueGUI.

A typical OpenCue deployment runs a single instance of Cuebot, which is shared by all users.

System requirements

To plan your installation of Cuebot, consider the following requirements:

  • A Cuebot server requires a mimimum of 6GB of RAM.
  • Cuebot functions best when it has a low-latency connection to the OpenCue database. We recommend that you run Cuebot either on the same machine or within the same local network as the database.

Before you begin

Before you work through the steps in this guide, make sure you complete the steps in Setting up the database.

A Cuebot server requires a mimimum of 6GB of memory.

Make sure you also complete the following steps:

  1. Configure database values. Use the same values you used in Setting up the database.

    export DB_NAME=cuebot_local
    export DB_USER=cuebot
    export DB_PASS=<changeme>
  2. If you plan to run Cuebot in a Docker container (Options #1 and #2 below) you must also install Docker. For installation instructions for your platform, see the Docker docs.

  3. If you plan to run Cuebot in a Docker container, you must also define the environment variable DB_HOST_IN_DOCKER.

    • If you also installed PostgreSQL in a container, fetch the IP address for the PostgreSQL container:

      export DB_HOST_IN_DOCKER=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <name of Postgres container>)
    • If you are running Docker for macOS and your database is running on the macOS host, specify host.docker.internal:

      export DB_HOST_IN_DOCKER=host.docker.internal
    • If your database is running on a different machine, specify the IP address of the host for your database:

      export DB_HOST_IN_DOCKER=<IP address of the database host machine>

Installing and running Cuebot

Option 1: Download and run the pre-built Docker image from DockerHub

To download and run the Cuebot Docker image:

  1. Download the Docker image from Docker hub:

    docker pull opencue/cuebot
  2. To start Cuebot, run the Docker image:

    docker run -td --name cuebot -p 8080:8080 -p 8443:8443 opencue/cuebot --datasource.cueDataSource.url=jdbc:postgresql://$DB_HOST_IN_DOCKER/$DB_NAME --datasource.cueDataSource.username=$DB_USER --datasource.cueDataSource.password=$DB_PASS

Option 2: Build and run the Cuebot Docker image from source

Make sure you’ve checked out the source code and your current directory is the root of the checked out source.

To build and run the Cuebot Docker image:

  1. Build the Docker image and tag it as opencue/cuebot:

    docker build -t opencue/cuebot -f cuebot/Dockerfile .
  2. To start Cuebot, run the Docker image:

    docker run -td --name cuebot -p 8080:8080 -p 8443:8443 opencue/cuebot --datasource.cueDataSource.url=jdbc:postgresql://$DB_HOST_IN_DOCKER/$DB_NAME --datasource.cueDataSource.username=$DB_USER --datasource.cueDataSource.password=$DB_PASS

Option 3: Manually install from the published release

Visit https://github.com/AcademySoftwareFoundation/OpenCue/releases and download the cuebot JAR from the latest release’s Assets.

  1. You must have a Java Runtime Environment (JRE) installed with which to run the JAR file. Java 8+ is supported for OpenCue.

    On CentOS this can be installed using yum:

    sudo yum install java-1.8.0-openjdk

    On macOS you can use Homebrew:

    brew tap caskroom/versions
    brew cask install java8
  2. Next, use your JRE to run the Cuebot JAR file:

    export JAR_PATH=<path to Cuebot JAR>
    java -jar $JAR_PATH --datasource.cueDataSource.url=jdbc:postgresql://$DB_HOST/$DB_NAME --datasource.cueDataSource.username=$DB_USER --datasource.cueDataSource.password=$DB_PASS

Option 4: Build from source

Make sure you’ve checked out the source code and your current directory is the root of the checked out source.

  1. You must have a Java Runtime Environment (JRE) installed with which to run the JAR file. Java 8+ is supported for OpenCue.

    On CentOS this can be installed using yum:

    sudo yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

    On macOS you can use Homebrew:

    brew tap caskroom/versions
    brew cask install java8
  2. Next, use Gradle to build the Cuebot JAR file from source. The OpenCue source code comes packaged with a Gradle executable for this purpose:

    cd cuebot
    ./gradlew shadowJar
  3. Finally, use your JRE to run the Cuebot JAR:

    java -jar build/libs/cuebot-all.jar --datasource.cueDataSource.url=jdbc:postgresql://$DB_HOST/$DB_NAME --datasource.cueDataSource.username=$DB_USER --datasource.cueDataSource.password=$DB_PASS

Verifying your install

Cuebot produces a startup screen at launch:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::

To view the startup screen:

  1. If you’re running Cuebot in a Docker container, run the following command:

    docker logs cuebot
  2. If you’re running the Cuebot JAR directly in the native operating system of your machine, you can view the startup screen in the output of the terminal you used to start the JAR.

What’s next?

Last modified Tuesday, July 9, 2019: Add create project issue link (4d14b47)