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

fix: Prevent interactive prompts in Docker build #3

Draft
wants to merge 48 commits into
base: main
Choose a base branch
from

Conversation

AlexCuadron
Copy link
Owner

@AlexCuadron AlexCuadron commented Feb 17, 2025

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:

  1. Setting non-interactive environment variables in the Dockerfile:

    ENV DEBIAN_FRONTEND=noninteractive \
        DEBCONF_NONINTERACTIVE_SEEN=true
  2. Configuring debconf to use non-interactive frontend:

    echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  3. Adding force flags to cleanup commands:

    apt-get clean -y && \
    apt-get autoremove -y && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
    yes | /openhands/micromamba/bin/micromamba clean --all --force-pkgs-dirs
  4. Setting micromamba to always accept prompts:

    CONDA_ALWAYS_YES=true /openhands/micromamba/bin/micromamba create -n openhands -y
  5. 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.

dependabot bot and others added 30 commits February 10, 2025 09:02
…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]>
…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]>
…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>
csmith49 and others added 18 commits February 13, 2025 11:50
…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]>
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.