mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-06 21:44:00 -05:00
feat: Add dev container (#8589)
This commit is contained in:
15
.devcontainer/devcontainer.json
Normal file
15
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
// For format details, see: https://aka.ms/devcontainer.json
|
||||||
|
{
|
||||||
|
"name": "Python 3",
|
||||||
|
// Documentation for this image:
|
||||||
|
// - https://github.com/devcontainers/templates/tree/main/src/python
|
||||||
|
// - https://github.com/microsoft/vscode-remote-try-python
|
||||||
|
// - https://hub.docker.com/r/microsoft/devcontainers-python
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
|
||||||
|
"ghcr.io/devcontainers-extra/features/poetry:2": {},
|
||||||
|
"ghcr.io/devcontainers/features/node:1": {},
|
||||||
|
},
|
||||||
|
"postCreateCommand": ".devcontainer/setup.sh",
|
||||||
|
}
|
||||||
7
.devcontainer/setup.sh
Normal file
7
.devcontainer/setup.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install `nc`
|
||||||
|
sudo apt update && sudo apt install netcat -y
|
||||||
|
|
||||||
|
# Do common setup tasks
|
||||||
|
source .openhands/setup.sh
|
||||||
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[*]
|
||||||
|
# force *nix line endings so files don't look modified in container run from Windows clone
|
||||||
|
end_of_line = lf
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
6
.gitattributes
vendored
6
.gitattributes
vendored
@@ -1 +1,7 @@
|
|||||||
*.ipynb linguist-vendored
|
*.ipynb linguist-vendored
|
||||||
|
|
||||||
|
# force *nix line endings so files don't look modified in container run from Windows clone
|
||||||
|
* text eol=lf
|
||||||
|
# Git incorrectly thinks some media is text
|
||||||
|
*.png -text
|
||||||
|
*.mp4 -text
|
||||||
|
|||||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -161,9 +161,16 @@ cython_debug/
|
|||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
.idea/
|
.idea/
|
||||||
.vscode/
|
|
||||||
.cursorignore
|
.cursorignore
|
||||||
|
|
||||||
|
# VS Code: Ignore all but certain files that specify repo-specific settings.
|
||||||
|
# https://stackoverflow.com/questions/32964920/should-i-commit-the-vscode-folder-to-source-control
|
||||||
|
.vscode/**/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
|
||||||
# evaluation
|
# evaluation
|
||||||
evaluation/evaluation_outputs
|
evaluation/evaluation_outputs
|
||||||
evaluation/outputs
|
evaluation/outputs
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ python -m pip install pre-commit
|
|||||||
if [ -d ".git" ]; then
|
if [ -d ".git" ]; then
|
||||||
echo "Installing pre-commit hooks..."
|
echo "Installing pre-commit hooks..."
|
||||||
pre-commit install
|
pre-commit install
|
||||||
|
make install-pre-commit-hooks
|
||||||
fi
|
fi
|
||||||
|
|||||||
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
// force *nix line endings so files don't look modified in container run from Windows clone
|
||||||
|
"files.eol": "\n",
|
||||||
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user