Skip to content

Commit

Permalink
Update README and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
crhf committed Apr 9, 2024
1 parent fecfa25 commit 102db64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Dockerfile.one_task
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ RUN apt install -y ttf-mscorefonts-installer

RUN git config --global user.email [email protected]
RUN git config --global user.name acr
WORKDIR /opt/SWE-bench
SHELL ["conda", "run", "-n", "swe-bench", "/bin/bash", "-c"]
RUN echo django__django-11133 > task_subset.txt
RUN python harness/run_setup.py --log_dir logs --testbed testbed --result_dir setup_result --subset_file task_subset.txt

COPY . /opt/auto-code-rover
WORKDIR /opt/auto-code-rover
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,19 @@ docker build -f Dockerfile.one_task -t acr-one-task .
docker run -it acr-one-task /bin/bash
```

In the started docker container, run
Then, set up a task in the container (e.g., django__django-11133):

```
cd /opt/SWE-bench
conda activate swe-bench
echo django__django-11133 > task_subset.txt
python harness/run_setup.py --log_dir logs --testbed testbed --result_dir setup_result --subset_file task_subset.txt
```

Finally, start AutoCodeRover:

```
cd /opt/auto-code-rover
conda activate auto-code-rover
export OPENAI_KEY=xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PYTHONPATH=. python app/main.py --enable-layered --model gpt-4-0125-preview --setup-map ../SWE-bench/setup_result/setup_map.json --tasks-map ../SWE-bench/setup_result/tasks_map.json --output-dir output --task django__django-11133
Expand Down

0 comments on commit 102db64

Please sign in to comment.