Merge pull request #445 from andrewm4894/multiple-devcontainers

add support for multiple devcontainers
This commit is contained in:
Andrew Maguire
2023-01-06 21:37:57 +00:00
committed by GitHub
3 changed files with 26 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ devcontainer (either
or in your browser via
[GitHub Codespaces](https://github.com/features/codespaces)).
**Note**: If you want to chose a specific .devcontainer within GitHub codespaces
select "New with options" and you will be able to select any of the pre-defined
devcontainers in this repo.
### Run pre-commit
```bash
+15
View File
@@ -0,0 +1,15 @@
{
"name": "Open-Assistant",
"image": "mcr.microsoft.com/vscode/devcontainers/universal",
"features": {
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {
"version": "latest"
}
},
"postCreateCommand": "bash .devcontainer/frontend/post_create_command.sh",
"customizations": {
"vscode": {
"extensions": ["GitHub.copilot"]
}
}
}
@@ -0,0 +1,7 @@
# ensure pre-commit is installed
pre-commit install
# npm install in /website
cd website
npm install
cd ..