π OpenHands: AI-Driven Development
fix: change to use the latest docker image. (#290)
iFurySt2286e739125f
diff --git a/README.md b/README.mdindex 575e0e3f36..57ec344717 100644--- a/README.md+++ b/README.md@@ -29,7 +29,7 @@ docker ps # this should exit successfullyThen pull our latest image [here](https://github.com/opendevin/OpenDevin/pkgs/container/sandbox)```bash-docker pull ghcr.io/opendevin/sandbox:v0.1+docker pull ghcr.io/opendevin/sandbox```Then copy `config.toml.template` to `config.toml`. Add an API key to `config.toml`.diff --git a/evaluation/SWE-bench/scripts/run_docker_interactive.sh b/evaluation/SWE-bench/scripts/run_docker_interactive.shindex 1c8475b2af..40a0e6e72a 100755--- a/evaluation/SWE-bench/scripts/run_docker_interactive.sh+++ b/evaluation/SWE-bench/scripts/run_docker_interactive.sh@@ -1,6 +1,6 @@#!/bin/bash-DOCKER_IMAGE=ghcr.io/opendevin/eval-swe-bench:v0.1+DOCKER_IMAGE=ghcr.io/opendevin/eval-swe-benchWORK_DIR=`pwd`docker run \diff --git a/opendevin/README.md b/opendevin/README.mdindex 69237e7c75..c56ef8e80f 100644--- a/opendevin/README.md+++ b/opendevin/README.md@@ -27,7 +27,7 @@ docker build -f opendevin/sandbox/Dockerfile -t opendevin/sandbox:v0.1 .Or you can pull the latest image [here](https://github.com/opendevin/OpenDevin/pkgs/container/sandbox):```bash-docker pull ghcr.io/opendevin/sandbox:v0.1+docker pull ghcr.io/opendevin/sandbox```2. Set the `OPENAI_API_KEY`, please find more details [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety). Also, choose the model you want. Default is `gpt-4-0125-preview`diff --git a/opendevin/sandbox/sandbox.py b/opendevin/sandbox/sandbox.pyindex cbf09da145..167e2546fe 100644--- a/opendevin/sandbox/sandbox.py+++ b/opendevin/sandbox/sandbox.py@@ -18,7 +18,9 @@ OutputType = namedtuple("OutputType", ["content"])DIRECTORY_REWRITE = config.get_or_default("DIRECTORY_REWRITE", "") # helpful for docker-in-docker scenarios-CONTAINER_IMAGE = config.get_or_default("SANDBOX_CONTAINER_IMAGE", "ghcr.io/opendevin/sandbox:v0.1")++CONTAINER_IMAGE = config.get_or_default("SANDBOX_CONTAINER_IMAGE", "ghcr.io/opendevin/sandbox")+# FIXME: On some containers, the devin user doesn't have enough permission, e.g. to install packages# How do we make this more flexible?RUN_AS_DEVIN = config.get_or_default("RUN_AS_DEVIN", "true").lower() != "false"