Area: Deployment Issues
Sub-Area: Container Security / Image Builds
Applies to: OSS
Issue
You build self-hosted DataHub Docker images in an environment that routes OS package installs through an internal artifact proxy or curation policy. The policy blocks the SQLite package, so the build fails. This article covers the self-hosted (OSS) images. DataHub Cloud customers don't build these images.
You Might Be Asking
- Which base image and package repository do the DataHub images use?
- Is the frontend image Node-based?
- Does DataHub Lite or the ingestion framework need SQLite inside the server images?
- Where do I find the DataHub Docker documentation?
Cause
The DataHub images install OS packages from a package repository during the build. If your proxy or curation policy blocks a package, the build fails at that step.
Solution
-
Check the base image and repository. The
datahub-gmsDockerfile sets the base image and package repository as build arguments:
ARG BASE_IMAGE=cgr.dev/chainguard/wolfi-base:latest
ARG APK_REPOSITORY_URL=https://apk.cgr.dev/chainguard
With these defaults the image is not built on Alpine. An Alpine remote in your artifact proxy does not cover its package repository. Your proxy must allow the repository in APK_REPOSITORY_URL, or you must override that build argument. The Docker images page covers the BASE_IMAGE and APK_REPOSITORY_URL build arguments. Check the Dockerfile in the release you build, because other releases may differ.
-
Know what the images are. The
datahub-frontendimage is a Java runtime image, not a Node image. It uses the shareddocker/snippets/setup_java_runtime.sh. -
Know where SQLite matters in DataHub. The ingestion framework checks the SQLite library that your Python runtime links. It raises
SQLite version 3.24.0 or later is requiredwhen that library is older than 3.24.0. You can see the version with:
python -c "import sqlite3; print(sqlite3.sqlite_version)"
DataHub Lite is a separate developer tool. Its default storage engine is SQLite and its SQL-backed store writes aspects with plain INSERT INTO metadata_aspect_v2 statements. See DataHub Lite.
- Decide how to handle the blocked package. Ask your security team to allow the package in your proxy, or change the install lines in your own Dockerfiles. If you change them, test every rebuilt image before you deploy it.