Skip to content

Dockerfile: Install less, vim, and nano #17670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rschroll
Copy link

References

Solves #17668.

Code changes

This installs less, vim, and nano through micromamba. I'm guess that this is the preferred method, so we don't have to worry about which package manager the base image is actually using.

git commit seems to assume EDITOR=vi, if it's not set, and the conda-forge vim package doesn't install or link vi. Thus, git commit still fails to work until you set $EDITOR yourself. Perhaps there's a vi-is-vim package in conda-forge, but I haven't found it. We could also set $EDITOR in the Dockerfile, if we can agree on what it should be.

User-facing changes

None

Backwards-incompatible changes

None

less is necessary for some git cli tools, like git diff.  vim and
nano can be editors for git commit.  Note that git commit defaults
to EDITOR=vi, and this vim install doesn't provide a vi binary, so
you still need to set $EDITOR to be able to run git commit.
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

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