mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix: change to use the latest docker image. (#290)
Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
@@ -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`.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user