mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* 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>
40 lines
1.1 KiB
Docker
40 lines
1.1 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
# https://github.com/princeton-nlp/SWE-bench/issues/15#issuecomment-1815392192
|
|
RUN apt-get update && \
|
|
apt-get install -y bash gcc git jq wget && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN git config --global user.email "swebench@pnlp.org"
|
|
RUN git config --global user.name "swebench"
|
|
|
|
RUN apt update && apt install -y build-essential
|
|
|
|
# Create new user
|
|
RUN useradd -ms /bin/bash swe-bench
|
|
USER swe-bench
|
|
WORKDIR /home/swe-bench
|
|
|
|
# Setup Conda
|
|
ENV PATH="/home/swe-bench/miniconda3/bin:${PATH}"
|
|
ARG PATH="/home/swe-bench/miniconda3/bin:${PATH}"
|
|
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh \
|
|
&& mkdir ~/.conda \
|
|
&& bash miniconda.sh -b \
|
|
&& rm -f miniconda.sh
|
|
RUN conda --version
|
|
|
|
# Setup SWE-Bench Env
|
|
COPY environment.yml .
|
|
RUN conda env create -f environment.yml
|
|
|
|
# Some missing packages
|
|
RUN pip install datasets python-dotenv gitpython
|
|
|
|
RUN conda init bash
|
|
|
|
CMD ["/bin/bash"]
|
|
# docker build -t opendevin/eval-swe-bench:v0.1 -f evaluation/swe-bench/Dockerfile evaluation/swe-bench/
|
|
# docker push opendevin/eval-swe-bench:v0.1
|