Prerequisites

Before you build a custom image, the following requirements must be met. Images that fail to meet these standards may cause runtime errors.

  1. Cloudera Workflow Orchestrator version: Your instance runs Cloudera Workflow Orchestrator 2.0.0 (or a later release that supports custom images).
  2. Base image reference: You use the exact Cloudera Airflow base image for Airflow version 3.4.0 on Python 3.12.
  3. Private registry: You host your custom image in a container registry that is reachable from your workload cluster.
  4. Registry credentials: If your registry is private, you configure pull credentials for the Cloudera Workflow Orchestrator deployment when enabling the custom image feature.
  5. Extend the official Cloudera Workflow Orchestrator base image: Build directly on top of the Cloudera-provided Cloudera Workflow Orchestrator Airflow image. Do not start from upstream Apache Airflow images or generic Python base images.
    • Do not remove packages, plugins, or configuration included in the base image.
    • Do not change the Airflow version, Python version, or AIRFLOW_HOME path.
    • Do not replace the Cloudera entrypoint, platform plugins (caf_internal), or airflow_local_settings.py policy.
  6. Make sure that you set the following correctly:
    • AIRFLOW_HOME: /usr/local/airflow
    • AIRFLOW_UID: 50000 (image must run as this user)
    • Virtual Environment Path: /opt/airflow_venv
  7. Make sure that your container conforms to the following security rules:
    • runAsUser: 50000, runAsNonRoot: true, fsGroup: 0
    • allowPrivilegeEscalation: false, all capabilities dropped
    • readOnlyRootFilesystem: true (write only to expected mount paths such as /tmp)
    • seccompProfile: RuntimeDefault
  8. Make sure that you design your image so that runtime writes go to mounted volumes rather than the root filesystem.
  9. Make sure that the container registry hosting your custom image is specified in the Anywhere Cloud Console's extraRegistries parameter.