Adding Built-in Workflows to the BlueCat Gateway Container - Platform - BlueCat Gateway - 19.8.1

Gateway Administration Guide

Locale
English (United States)
Product name
BlueCat Gateway
Version
19.8.1

You can instantiate a BlueCat Gateway container with custom workflows built-in. This enables use of custom workflows upon first run of a Gateway container without the need to create or import them into Gateway. To add built-in workflows to a container, you must add the workflows to the /portal/Built-in folder in the Dockerfile.

Note: Built-in workflows cannot be deleted, exported, or imported.
  1. Add all desired workflows to the /tmp folder.
    1. Write the following script in a Dockerfile:
      FROM quay.io/bluecat/gateway:latest
      USER root
                                      
      # you can add any other 3rd party libraries here e.g
      # RUN pip3 install openpyxl==2.6.2
                                      
      ADD . /portal/Built-in
                                      
      USER flask
      Note: Your file must be named Dockerfile. For more information on Dockerfiles, refer to the official Docker documentation (docs.docker.com).
    2. Add the Dockerfile in the /tmp folder.
  2. Create an image using a Dockerfile. Run the docker build command:
    cd /tmp
    docker build -t <name:tag> .
    An image called custom_image is created.
  3. Instantiate the container by running the docker run command using custom_image:
    docker run -d -p 80:8000 -p 443:44300 -v <path_to_mapped_data_directory>:/
    bluecat_gateway/ -v <path_to_mapped_log_directory>:/logs/ -e BAM_IP=<your
    bam ip>
    --name bluecat_gateway custom_image
  4. Log in to BlueCat Gateway. Your custom workflows should be available in the left navigation under Built-In.