Skip to content

Commit

Permalink
fix: Add non-interactive Docker environment for SWE-bench evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCuadron committed Feb 17, 2025
1 parent aaba2d4 commit e8df22b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions evaluation/swe_bench/scripts/docker/docker_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Set Docker to run non-interactively
export DOCKER_BUILDKIT=1
export DOCKER_SCAN_SUGGEST=false
export DEBIAN_FRONTEND=noninteractive

# Function to run Docker commands with yes piped in
docker_noninteractive() {
yes | "$@"
}

# Alias docker to use the non-interactive function
alias docker=docker_noninteractive
3 changes: 3 additions & 0 deletions evaluation/swe_bench/scripts/docker/pull_all_eval_docker.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -e

# Source the Docker environment settings
source "$(dirname "$0")/docker_env.sh"

LEVEL=$1
# three levels:
# - base, keyword "sweb.base"
Expand Down

0 comments on commit e8df22b

Please sign in to comment.