Area: Deployment Issues
Sub-Area: Remote Executor Upgrade / Custom Dockerfile Migration
Applies to: Cloud
Issue
Starting with v1.1.0-cloud, the DataHub Remote Executor image (datahub-executor) uses Chainguard Wolfi (cgr.dev/chainguard/wolfi-base) as its base OS instead of Ubuntu 24.04. Every executor variant is built on Wolfi: full (<tag>), slim (<tag>-slim), locked (<tag>-locked), full unbundled (<tag>-unbundled) and slim unbundled (<tag>-slim-unbundled).
This breaks deployments that upgrade from an image older than v1.1.0-cloud and do one of these things:
- Extend the executor image with a custom Dockerfile that installs packages with
apt-get. - Start the container with an explicit command that calls
dockerize. - Call the bundled venv builder (
build_bundled_venvs_unified.sh) from a custom Dockerfile.
Symptoms
- A
RUN apt-get ...step in your Dockerfile fails with exit code 127, becauseapt-getis not in the image. - An ECS task, Kubernetes pod or Docker container fails to start because the
dockerizeexecutable is not found in$PATH. - A
RUN /usr/local/bin/build_bundled_venvs_unified.shstep fails with exit code 127 because the script does not exist in the image you build on. - The bundled venv build fails with
ERROR: BUNDLED_CLI_VERSION environment variable must be set.
You Might Be Asking
- Why did my Docker build stop working after I moved my Remote Executor base image to
v1.1.0-cloudor later? - Why is
apt-getnot found in my custom Remote Executor Dockerfile? - Why is
dockerizeno longer in the executor image? - What do I change in my ECS task definition or CloudFormation stack when I upgrade the Remote Executor?
- Why is
build_bundled_venvs_unified.shnot found when I build on theslim-unbundledimage? - Do I need to remove
s3fromBUNDLED_VENV_PLUGINS?
Cause
The v1.1.0-cloud release moved the executor images from Ubuntu 24.04 to Wolfi. Wolfi uses apk for packages, so apt-get does not exist. The same release removed dockerize from the image. The startup script /start_datahub_executor.sh now waits for the GMS /health endpoint itself, using curl, and the image's default command is exec /start_datahub_executor.sh.
The bundled venv builder ships only in the images that contain pre-built connector venvs (full, slim and locked). The two unbundled variants do not contain it.
Solution
Apply each change that matches your deployment.
Change 1: Replace apt-get with apk in custom Dockerfiles
-
Open the custom Dockerfile that extends the Remote Executor image.
-
Replace every
apt-get(orapt) step withapk add. The executor image runs as thedatahubuser, so switch torootto install packages and switch back afterward:
FROM <registry>/datahub-executor:<tag>-slim
USER root
# Before (Ubuntu, no longer works):
# RUN apt-get update && apt-get install -y <package-name> && rm -rf /var/lib/apt/lists/*
# After (Wolfi):
RUN apk add --no-cache --update-cache <package-name>
USER datahub
-
Check each package name against Wolfi. Some Ubuntu names differ. For example, Ubuntu's
build-essentialisbuild-baseon Wolfi (the executor image itself installsbuild-base). To look up other names, use the Wolfi package search linked from the v1.1.0 release notes. -
If you install Java, don't reuse an Ubuntu path such as
/usr/lib/jvm/java-17-openjdk-amd64. It does not exist on Wolfi. You often don't need to install Java at all: the full variants (<tag>and<tag>-unbundled) already include a Wolfi OpenJDK JRE. Inv2.4.ximages those variants also setJAVA_HOME=/usr/lib/jvm/java-25-openjdkand add it toPATH. The slim variants do not include Java.
Change 2: Remove the dockerize startup command
-
Find every place that sets the container command to
dockerize: ECS task definitions, CloudFormation templates, Kubernetes manifests and Docker Compose files. -
Remove the command override. The container then runs the image's default command,
exec /start_datahub_executor.sh, which waits for GMS before it starts the executor.
# Remove this from your ECS task definition or template:
# "command": ["dockerize", "./start_datahub_executor.sh"]
- If you must set a command explicitly, use the absolute path
/start_datahub_executor.sh. Don't use./start_datahub_executor.sh. The image's working directory is/datahub-executor, so the relative path points to a file that does not exist.
"command": ["/start_datahub_executor.sh"]
- If you deployed with the DataHub CloudFormation template, update the stack instead of editing the ECS task definition by hand. In the CloudFormation console, select the Remote Executor stack, click Update, choose Replace current template, and upload the latest template. Parameters you don't change keep their previous values. See Configuring Remote Executor: Deploy on Amazon ECS. After the update, confirm that the container definition no longer calls
dockerize.
Change 3: Build bundled connectors on the right image variant
-
build_bundled_venvs_unified.shis at/usr/local/bin/build_bundled_venvs_unified.shin the full (<tag>), slim (<tag>-slim) and locked (<tag>-locked) images. It is not in<tag>-unbundledor<tag>-slim-unbundled. Build on the unlocked full or slim image. Don't build on<tag>-lockedeither: locked images haveuvandpipremoved, so the builder can't install anything. -
Use the Dockerfile from Bundling Additional Connectors:
ARG EXECUTOR_IMAGE
FROM ${EXECUTOR_IMAGE}
USER root
ARG BUNDLED_CLI_VERSION
ENV BUNDLED_CLI_VERSION=${BUNDLED_CLI_VERSION}
ARG BUNDLED_VENV_PLUGINS
ENV BUNDLED_VENV_PLUGINS=${BUNDLED_VENV_PLUGINS}
RUN /usr/local/bin/build_bundled_venvs_unified.sh
USER datahub
docker build \
--platform linux/amd64 \
--build-arg EXECUTOR_IMAGE=<registry>/datahub-executor:<tag>-slim \
--build-arg BUNDLED_VENV_PLUGINS=mysql,snowflake \
-f Dockerfile.bundled .
-
In
BUNDLED_VENV_PLUGINS, list the connectors you want to add. You don't need to repeat the base image's own list.- On
v2.1.0-cloudand later, a connector that the base image already includes (such ass3) gets its own new venv, and the other pre-built connectors are left unchanged. - Before
v2.1.0-cloud, the pre-built connectors share one venv, and each<plugin>-bundledpath is a link to it. Listing one of them (such ass3) rebuilds that shared venv and breaks the other connectors that use it. On those versions, list only connectors the base image does not already include.
- On
-
Set
BUNDLED_CLI_VERSIONonly if you have to.- On
v2.2.0-cloudand later, leave it unset. The builder then uses theacryl-datahubversion that is already installed in the base image. - Before
v2.2.0-cloud, the build fails withERROR: BUNDLED_CLI_VERSION environment variable must be setif you leave it unset. Pass theacryl-datahubversion installed in your base image. To read it:
- On
docker run --rm --entrypoint python <registry>/datahub-executor:<tag>-slim \
-c 'import importlib.metadata as m; print(m.version("acryl-datahub"))'
The builder checks that each connector venv ends up with exactly this acryl-datahub version, so don't pass a different one.
-
Build for the CPU architecture of the nodes that run the executor. Bundled venvs contain architecture-specific wheels. See the CPU architecture section of Bundling Additional Connectors.
-
A run uses a bundled venv only when the ingestion source's CLI Version (under Advanced) is set to
bundled.