Skip to content

Commit

Permalink
Add dev container config
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Jan 9, 2025
1 parent f993f4e commit 2470ae8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Addons Server Development",
"dockerComposeFile": ["../docker-compose.yml"],
"service": "web",
"workspaceFolder": "/data/olympia",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"github.vscode-github-actions"
],
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
}
},
"forwardPorts": [80],
"initializeCommand": "make up_pre",
"postStartCommand": "make up_post",
"remoteUser": "olympia"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ tmp/*

# do not ignore the following files
!docker-compose.private.yml
!.devcontainer/docker-compose.devcontainer.yml
!private/README.md
!storage/.gitignore
!deps/.gitkeep

0 comments on commit 2470ae8

Please sign in to comment.