<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v" -->

---
title: Building hermetic notebook images for Open Data Hub and...
description: A team building notebook images for Open Data Hub and Red Hat OpenShift AI describes their hermetic build pattern: nothing downloads during the container...
canonical: https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building hermetic notebook images for Open Data Hub and Red Hat OpenShift AI | daily.dev
og:description: A team building notebook images for Open Data Hub and Red Hat OpenShift AI describes their hermetic build pattern: nothing downloads during the container...
og:url: https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v
og:image: https://api.daily.dev/og/posts/DckuH4A5V.png
og:image:alt: Building hermetic notebook images for Open Data Hub and Red Hat OpenShift AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building hermetic notebook images for Open Data Hub and Red Hat OpenShift AI

**[Red Hat Developer](https://daily.dev/sources/rhdev)** · 6 min read · 0 upvotes · 0 comments

## Summary

A team building notebook images for Open Data Hub and Red Hat OpenShift AI describes their hermetic build pattern: nothing downloads during the container build, dependencies are pinned in lockfiles and prefetched ahead of time using tools like Cachi2 and Hermeto, then installed from a local cache with the network off. The same Containerfile runs on a laptop, GitHub Actions, and Konflux. They explain why typed ecosystem packages (rpm, pip, npm, gomod) are preferred over generic tarball downloads for SBOM clarity and Conforma compliance, and walk through hard cases like codeserver's npm graph, ripgrep's postinstall binary download, and Pandoc, each solved by repackaging as proper pip/npm artifacts. They close with practical advice: split upstream and subscribed lockfiles, avoid generic prefetch, partner early on awkward binaries, patch installers that fetch at postinstall, and automate lock renewal.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.redhat.com/articles/2026/08/28/hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai>

## Questions this post answers

### How do you handle npm packages that download binaries during postinstall in a hermetic build?

Patch the cached postinstall script to copy an already-installed binary instead of downloading it. For ripgrep, the @vscode/ripgrep package normally downloads a binary in postinstall, which fails offline; the fix was publishing a multi-arch ripgrep wheel, prefetching it as pip, pointing the environment at the installed binary, and patching the cached postinstall to copy that binary instead.

_Teams hardening CI pipelines against hermetic build failures can track patterns like this on daily.dev._

### Why avoid generic tarball prefetching in hermetic container builds?

Generic tarball prefetch satisfies offline networking but not packaging or auditability requirements, since SBOMs can only show opaque tarball URLs instead of real ecosystem metadata. The recommended approach is preferring typed ecosystems like rpm, pip, npm, or gomod, or vendored source, over generic URL downloads, reserving generic prefetch mainly for things like GPG keys.

_Engineers evaluating supply-chain compliance tools can follow packaging best practices like these on daily.dev._

### What tools are used for hermetic container image prefetching before a network-isolated build?

Cachi2 and Hermeto are used to download every RPM, Python wheel, npm package, and Go module before podman or buildah starts building, so the Containerfile only installs from a local cache with no network access during the build itself. This produces reproducible dependency trees and SBOMs that name real package ecosystems.

_daily.dev helps developers building compliant container pipelines stay current on tooling like this._

## Similar posts on daily.dev

- [Build a zero trust AI pipeline with OpenShift and RHEL CVMs](https://daily.dev/posts/build-a-zero-trust-ai-pipeline-with-openshift-and-rhel-cvms-6mhnornct) · Red Hat Developer · 0 upvotes · 0 comments
- [Securing CI/CD for an open source project: Locking down dependencies](https://daily.dev/posts/securing-ci-cd-for-an-open-source-project-locking-down-dependencies-so0u2d8g2) · CNCF · 25 upvotes · 0 comments
- [Chainguard thinks most DevOps teams are solving container security the hard way](https://daily.dev/posts/chainguard-thinks-most-devops-teams-are-solving-container-security-the-hard-way-noe4iglij) · The New Stack · 0 upvotes · 0 comments
- [If It Quacks Like a Package Manager](https://daily.dev/posts/if-it-quacks-like-a-package-manager-rsetoxikw) · Lobsters · 0 upvotes · 0 comments
- [Securing CI/CD for an open source project: lessons from Cilium](https://daily.dev/posts/securing-ci-cd-for-an-open-source-project-lessons-from-cilium-eg8g6oivq) · cilium · 79 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#openshift](https://daily.dev/tags/openshift), [#sbom](https://daily.dev/tags/sbom)

[View this post on daily.dev](https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building hermetic notebook images for Open Data Hub and Red Hat OpenShift AI","url":"https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v"},"datePublished":"2026-08-28T03:25:11.363Z","dateModified":"2026-08-28T03:30:55.759Z","description":"A team building notebook images for Open Data Hub and Red Hat OpenShift AI describes their hermetic build pattern: nothing downloads during the container...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"Red Hat Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Red Hat Developer","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/2a8895f3216c4900bdc455585a4ad3e4","url":"https://daily.dev/sources/rhdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,openshift,sbom","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Red Hat Developer","item":"https://daily.dev/sources/rhdev"},{"@type":"ListItem","position":3,"name":"Building hermetic notebook images for Open Data Hub and Red Hat OpenShift AI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/building-hermetic-notebook-images-for-open-data-hub-and-red-hat-openshift-ai-dckuh4a5v#faq","mainEntity":[{"@type":"Question","name":"How do you handle npm packages that download binaries during postinstall in a hermetic build?","acceptedAnswer":{"@type":"Answer","text":"Patch the cached postinstall script to copy an already-installed binary instead of downloading it. For ripgrep, the @vscode/ripgrep package normally downloads a binary in postinstall, which fails offline; the fix was publishing a multi-arch ripgrep wheel, prefetching it as pip, pointing the environment at the installed binary, and patching the cached postinstall to copy that binary instead. Teams hardening CI pipelines against hermetic build failures can track patterns like this on daily.dev."}},{"@type":"Question","name":"Why avoid generic tarball prefetching in hermetic container builds?","acceptedAnswer":{"@type":"Answer","text":"Generic tarball prefetch satisfies offline networking but not packaging or auditability requirements, since SBOMs can only show opaque tarball URLs instead of real ecosystem metadata. The recommended approach is preferring typed ecosystems like rpm, pip, npm, or gomod, or vendored source, over generic URL downloads, reserving generic prefetch mainly for things like GPG keys. Engineers evaluating supply-chain compliance tools can follow packaging best practices like these on daily.dev."}},{"@type":"Question","name":"What tools are used for hermetic container image prefetching before a network-isolated build?","acceptedAnswer":{"@type":"Answer","text":"Cachi2 and Hermeto are used to download every RPM, Python wheel, npm package, and Go module before podman or buildah starts building, so the Containerfile only installs from a local cache with no network access during the build itself. This produces reproducible dependency trees and SBOMs that name real package ecosystems. daily.dev helps developers building compliant container pipelines stay current on tooling like this."}}]}
```

