🙌 OpenHands: AI-Driven Development
Feat: Dev Container for GitHub Codespaces (#2689)
மனோஜ்குமார் பழனிச்சாமிeb182f492e82
diff --git a/.devcontainer/README.MD b/.devcontainer/README.MDnew file mode 100644index 0000000000..d9fe31f38f--- /dev/null+++ b/.devcontainer/README.MD@@ -0,0 +1 @@+The files in this directory configure a development container for GitHub Codespaces.\ No newline at end of filediff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonnew file mode 100644index 0000000000..8e0a3108c1--- /dev/null+++ b/.devcontainer/devcontainer.json@@ -0,0 +1,15 @@+{+ "name": "OpenDevin Codespaces",+ "image": "mcr.microsoft.com/devcontainers/universal",+ "customizations":{+ "vscode":{+ "extensions": [+ "ms-python.python"+ ]+ }+ },+ "onCreateCommand": "sh ./.devcontainer/on_create.sh",+ "postCreateCommand": "make build",+ "postStartCommand": "USE_HOST_NETWORK=True nohup bash -c 'make run &'"++}diff --git a/.devcontainer/on_create.sh b/.devcontainer/on_create.shnew file mode 100644index 0000000000..3293c5699a--- /dev/null+++ b/.devcontainer/on_create.sh@@ -0,0 +1,8 @@+#!/usr/bin/env bash+sudo apt update+sudo apt install -y netcat+sudo add-apt-repository -y ppa:deadsnakes/ppa+sudo apt install -y python3.11+curl -sSL https://install.python-poetry.org | python3.11 -+# chromadb requires SQLite > 3.35 but SQLite in Python3.11.9 comes with 3.31.1+sudo cp /opt/conda/lib/libsqlite3.so.0 /lib/x86_64-linux-gnu/libsqlite3.so.0