Skip to content

chore: Use Debian base for notebook image#440

Merged
hsteude merged 1 commit into
mainfrom
issue-439-debian-base
May 26, 2026
Merged

chore: Use Debian base for notebook image#440
hsteude merged 1 commit into
mainfrom
issue-439-debian-base

Conversation

@hsteude

@hsteude hsteude commented May 26, 2026

Copy link
Copy Markdown
Contributor

Closes #439

Summary

  • Replace the Kubeflow runtime base image with debian:bookworm-slim to use glibc instead of Alpine/musl.
  • Install a more agent-friendly default toolset via apt, including jq, python3, python3-pip, build-essential, pkg-config, unzip, and archive utilities.
  • Remove Alpine-specific gcompat/LD_PRELOAD and switch jovyan creation to Debian groupadd/useradd.

Verification

  • docker build -f docker/kubeflow/Dockerfile --platform linux/amd64 --build-arg OPENCODE_VERSION=1.15.7 --build-arg S6_OVERLAY_VERSION=3.1.6.2 -t pk-opencode-debian-test .
  • docker run --rm --entrypoint /bin/bash pk-opencode-debian-test -lc 'set -e; id jovyan; getent passwd jovyan; ldd --version | head -1; bun --version; opencode --version; git --version; gh --version | head -1; rg --version | head -1; jq --version; python3 --version; gcc --version | head -1'\n- Started the container with s6 entrypoint for a smoke test and confirmed cont-init and OpenCode startup reached database migration/API startup logs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Kubeflow notebook runtime image to use a glibc-based Debian base image, improving compatibility for OpenCode agent workflows and making it easier to install/use common tooling.

Changes:

  • Switch the Kubeflow runtime stage base image from Alpine to debian:bookworm-slim.
  • Replace Alpine apk tooling and Alpine-specific glibc-compat setup (gcompat/LD_PRELOAD) with Debian apt-get installs.
  • Update jovyan user creation to use Debian-friendly groupadd/useradd while preserving UID/GID 1000.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsteude hsteude merged commit fcd2c91 into main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Debian slim base for Kubeflow notebook image

2 participants