mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
No longer chown -R the miniforge3 folder (#2566)
* No longer chown -R the miniforge3 folder * change miniforge3 group permission
This commit is contained in:
@@ -34,6 +34,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
|
||||
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 chmod -R g+w /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
|
||||
RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> /opendevin/bash.bashrc
|
||||
|
||||
@@ -361,16 +361,6 @@ class DockerSSHBox(Sandbox):
|
||||
raise Exception(
|
||||
f'An error occurred while checking if miniforge3 directory exists: {logs}'
|
||||
)
|
||||
# chown the miniforge3
|
||||
exit_code, logs = self.container.exec_run(
|
||||
['/bin/bash', '-c', 'chown -R opendevin:root /opendevin/miniforge3'],
|
||||
workdir=self.sandbox_workspace_dir,
|
||||
environment=self._env,
|
||||
)
|
||||
if exit_code != 0:
|
||||
raise Exception(
|
||||
f'Failed to chown miniforge3 directory for opendevin in sandbox: {logs}'
|
||||
)
|
||||
exit_code, logs = self.container.exec_run(
|
||||
[
|
||||
'/bin/bash',
|
||||
|
||||
Reference in New Issue
Block a user