Skip to content
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

Added two text editors so users can choose which one to use #1300

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

Conversation

gansbrest
Copy link

@gansbrest gansbrest commented Feb 17, 2025

The Docker container used in the the instructions https://github.com/AntonOsika/gpt-engineer/blob/main/docker/README.md does not have text editors and breaking gpte in the -i (improve) mode.

This fixes #1200 and provides a choice between two text editors vim and nano that can be made with -e EDITOR env variable during docker run. Nano will be used by default.


Important

Adds vim and nano to Docker container, allowing editor choice via -e EDITOR env variable, defaulting to nano.

  • Dockerfile Changes:
    • Adds vim and nano to the Docker container in docker/Dockerfile.
  • Behavior:
    • Fixes issue with -i mode in gpte by providing text editors.
    • Allows editor choice via -e EDITOR environment variable during Docker run, defaulting to nano.

This description was created by Ellipsis for 5831bb3. It will automatically update as commits are pushed.

…OR env variable. Nano will be used by default
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 5831bb3 in 52 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 drafted comments based on config settings.
1. docker/Dockerfile:9
  • Draft comment:
    Added text editors vim and nano. Ensure that including these packages in the builder stage and copying /usr/bin to the final stage is intentional, as it may add unneeded packages to the final image.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50%
    None
2. docker/Dockerfile:9
  • Draft comment:
    Addition of 'vim' and 'nano' addresses the missing editor issue.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
3. docker/Dockerfile:24
  • Draft comment:
    Copying the entire /usr/bin from the builder stage may override system binaries in the final image. It might be more robust to install only needed runtime packages directly in the final stage.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. docker/Dockerfile:31
  • Draft comment:
    Consider explicitly setting the default EDITOR (e.g. ENV EDITOR=nano) if not handled in entrypoint.sh, to match the PR description.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_20m60WyaBdetH8vD


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

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.

Improving existing code: No files were selected. Please select at least one file to proceed.
1 participant