Prerequisites
Before you build a custom image, the following requirements must be met. Images that fail to meet these standards may cause runtime errors.
- Cloudera Workflow Orchestrator version: Your instance runs Cloudera Workflow Orchestrator 2.0.0 (or a later release that supports custom images).
- Base image reference: You use the exact Cloudera Airflow base image for Airflow version 3.4.0 on Python 3.12.
- Private registry: You host your custom image in a container registry that is reachable from your workload cluster.
- Registry credentials: If your registry is private, you configure pull credentials for the Cloudera Workflow Orchestrator deployment when enabling the custom image feature.
- 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_HOMEpath. - Do not replace the Cloudera entrypoint, platform
plugins (
caf_internal), orairflow_local_settings.pypolicy.
- Make sure that you set the following correctly:
AIRFLOW_HOME:/usr/local/airflowAIRFLOW_UID: 50000 (image must run as this user)- Virtual Environment Path:
/opt/airflow_venv
- 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
- Make sure that you design your image so that runtime writes go to mounted volumes rather than the root filesystem.
- Make sure that the container registry hosting your custom image is specified in the Anywhere Cloud Console's extraRegistries parameter.
