Skip to content

Refactor/vscode from official image - #166

Merged
tmetzl merged 3 commits into
devfrom
refactor/vscode-from-official-image
Nov 17, 2026
Merged

tmetzl merged 3 commits into
devfrom
refactor/vscode-from-official-image

Conversation

@tmetzl

@tmetzl tmetzl commented Nov 17, 2026

Copy link
Copy Markdown
Member

Make VS Code easy to add to any image

Some images (e.g. the upcoming c-notebook) need VS Code but should not inherit the
data science stack from datascience-notebook-code. This PR makes adding VS Code to
an image a few Dockerfile lines, without changing the image tree.

Changes

  • jupyter-server-proxy moves into minimal-notebook, together with the nbclassic
    fix from Fix Prefect, Data Contract Editor and VS Code launcher on JupyterHub #165 (XSRF header for the "New" menu on JupyterHub). It is small and is what
    every proxied app needs (VS Code, Prefect, Data Contract Editor).
  • code-server is copied from the official image (codercom/code-server, pinned by tag
    and digest) instead of downloading and installing the .deb. code-server is
    self-contained in /usr/lib/code-server, so this drops the download stage, the SHA256
    check and dpkg -i.
  • README: new section on adding VS Code to an image and bumping code-server.

Decisions

  • No "feature" system: VS Code is the only shared tool today, so a framework would be
    premature. Large tools are copied from official images (like the Java JRE in
    bi-notebook), small shared ones go into minimal-notebook.
  • Each image pins its own code-server version: no builder changes, a pin change
    rebuilds that image automatically, and bump tools can update FROM lines.

Testing

  • Built minimal-notebook → datascience-notebook → datascience-notebook-code locally.
  • jupyter-server-proxy 4.6.1 is enabled and tree.js is patched in minimal-notebook.
  • In datascience-notebook-code, server-proxy/servers-info lists vscode, and
    /vscode/ serves code-server 4.145.2 through the Jupyter proxy.
  • Telemetry stays off: jupyter-vscode-proxy starts code-server with --disable-telemetry.

@tmetzl
tmetzl merged commit 4ae4ecd into dev Nov 17, 2026
2 checks 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.

1 participant