Repository navigation
Refactor/vscode from official image - #166
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make VS Code easy to add to any image
Some images (e.g. the upcoming
c-notebook) need VS Code but should not inherit thedata science stack from
datascience-notebook-code. This PR makes adding VS Code toan image a few Dockerfile lines, without changing the image tree.
Changes
jupyter-server-proxymoves intominimal-notebook, together with the nbclassicfix 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).
codercom/code-server, pinned by tagand digest) instead of downloading and installing the
.deb. code-server isself-contained in
/usr/lib/code-server, so this drops the download stage, the SHA256check and
dpkg -i.Decisions
premature. Large tools are copied from official images (like the Java JRE in
bi-notebook), small shared ones go intominimal-notebook.rebuilds that image automatically, and bump tools can update
FROMlines.Testing
minimal-notebook→datascience-notebook→datascience-notebook-codelocally.jupyter-server-proxy4.6.1 is enabled andtree.jsis patched inminimal-notebook.datascience-notebook-code,server-proxy/servers-infolistsvscode, and/vscode/serves code-server 4.145.2 through the Jupyter proxy.jupyter-vscode-proxystarts code-server with--disable-telemetry.