forked from All-Hands-AI/OpenHands
-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Prevent interactive prompts in Docker build #3
Draft
AlexCuadron
wants to merge
48
commits into
main
Choose a base branch
from
fix-docker-build-prompt-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
…ates (All-Hands-AI#6648) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: amanape <[email protected]>
Co-authored-by: Engel Nyst <[email protected]> Co-authored-by: openhands <[email protected]>
Co-authored-by: openhands <[email protected]> Co-authored-by: Xingyao Wang <[email protected]>
…ll-Hands-AI#6665) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: amanape <[email protected]>
…read/edit operations (All-Hands-AI#6653) Co-authored-by: openhands <[email protected]>
…ds-AI#6541) Co-authored-by: openhands <[email protected]>
…#6672) Co-authored-by: Engel Nyst <[email protected]>
…ands-AI#6666) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Engel Nyst <[email protected]>
…ates (All-Hands-AI#6667) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Engel Nyst <[email protected]>
…oid OOM Runtime Kill (All-Hands-AI#6338) Co-authored-by: openhands <[email protected]> Co-authored-by: Engel Nyst <[email protected]> Co-authored-by: Graham Neubig <[email protected]>
…instead of execute it through ipython (All-Hands-AI#6671) Co-authored-by: openhands <[email protected]> Co-authored-by: Graham Neubig <[email protected]> Co-authored-by: Engel Nyst <[email protected]>
…66.1 in /frontend in the eslint group (All-Hands-AI#6682) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ll-Hands-AI#6705) Co-authored-by: Calvin Smith <[email protected]>
…ates (All-Hands-AI#6712) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: amanape <[email protected]>
Signed-off-by: José Luis Di Biase <[email protected]> Co-authored-by: José Luis Di Biase <[email protected]> Co-authored-by: Oriana <[email protected]> Co-authored-by: Charlie <[email protected]> Co-authored-by: Juan Manuel Daza <[email protected]> Co-authored-by: Juan Manuel Daza <[email protected]> Co-authored-by: Cody Kociemba <[email protected]> Co-authored-by: Rohit Malhotra <[email protected]> Co-authored-by: Engel Nyst <[email protected]>
…dates (All-Hands-AI#6736) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Engel Nyst <[email protected]>
Co-authored-by: Engel Nyst <[email protected]>
…active environment and using force flags
…active environment and using force flags
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.
This PR fixes the Docker build issue where it gets stuck on "Delete 1061 entries? (yes/no) [yes] Aborted" by modifying the Dockerfile template to prevent interactive prompts:
Setting non-interactive environment variables in the Dockerfile:
ENV DEBIAN_FRONTEND=noninteractive \ DEBCONF_NONINTERACTIVE_SEEN=true
Configuring debconf to use non-interactive frontend:
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
Adding force flags to cleanup commands:
Setting micromamba to always accept prompts:
Handling Playwright installation non-interactively:
# Install playwright and its dependencies non-interactively DEBIAN_FRONTEND=noninteractive /openhands/micromamba/bin/micromamba run -n openhands poetry run pip install playwright && \ DEBIAN_FRONTEND=noninteractive PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 /openhands/micromamba/bin/micromamba run -n openhands poetry run playwright install --with-deps chromium && \ yes | /openhands/micromamba/bin/micromamba run -n openhands poetry run playwright install chromium
These changes ensure that Docker builds run without requiring manual intervention while maintaining the same functionality.