From e04bde851e470f252239b08e556eaa94f5e30925 Mon Sep 17 00:00:00 2001 From: Yufan Song <33971064+yufansong@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:10:17 +0800 Subject: [PATCH] test (#2409) Co-authored-by: Xingyao Wang --- containers/sandbox/Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/containers/sandbox/Dockerfile b/containers/sandbox/Dockerfile index 6da20b7dfe..9bf6f5bf2a 100644 --- a/containers/sandbox/Dockerfile +++ b/containers/sandbox/Dockerfile @@ -30,8 +30,14 @@ RUN mkdir -p -m0755 /var/run/sshd # symlink python3 to python RUN ln -s /usr/bin/python3 /usr/bin/python -# install basic dependencies for CodeActAgent -RUN pip3 install --upgrade pip -RUN pip3 install jupyterlab notebook jupyter_kernel_gateway flake8 -# TODO: those dependencies are needed for agentskills, we should pack them in a new sandbox image -RUN pip3 install python-docx PyPDF2 python-pptx pylatexenc openai opencv-python +# ==== OpenDevin Runtime Client ==== +RUN mkdir -p /opendevin && mkdir -p /opendevin/logs && chmod 777 /opendevin/logs +RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" +RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opendevin/miniforge3 +RUN bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge" +RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> ~/.bashrc + +# - agentskills dependencies +RUN /opendevin/miniforge3/bin/pip install --upgrade pip +RUN /opendevin/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8 +RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai opencv-python \ No newline at end of file