fix: change to use the latest docker image. (#290)

Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
iFurySt
2024-03-30 03:59:52 +08:00
committed by GitHub
parent 197e7fb2c0
commit 2286e73912
4 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ docker ps # this should exit successfully
Then 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`.

View File

@@ -1,6 +1,6 @@
#!/bin/bash
DOCKER_IMAGE=ghcr.io/opendevin/eval-swe-bench:v0.1
DOCKER_IMAGE=ghcr.io/opendevin/eval-swe-bench
WORK_DIR=`pwd`
docker run \

View File

@@ -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`

View File

@@ -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"