OpenHands/evaluation/SWE-bench/scripts/run_docker_interactive.sh
Xingyao Wang 5ff96111f0
A starting point for SWE-Bench Evaluation with docker (#60)
* a starting point for SWE-Bench evaluation with docker

* fix the swe-bench uid issue

* typo fixed

* fix conda missing issue

* move files based on new PR

* Update doc and gitignore using devin prediction file from #81

* fix typo

* add a sentence

* fix typo in path

* fix path

---------

Co-authored-by: Binyuan Hui <binyuan.hby@alibaba-inc.com>
2024-03-22 12:43:49 +08:00

15 lines
320 B
Bash
Executable File

#!/bin/bash
DOCKER_IMAGE=opendevin/eval-swe-bench:v0.1
WORK_DIR=`pwd`
docker run \
-it \
--rm \
--user root \
--ipc=host --ulimit memlock=-1 --ulimit stack=67108864 \
-v $WORK_DIR:/swe-bench \
-w /swe-bench \
$DOCKER_IMAGE \
/bin/bash -c "usermod -u $(id -u) swe-bench && su swe-bench"