-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Support developing and debugging in a docker container (#31)
* Our main branch is called main. * Support debugging and developing in docker. * Update readme. * fix
- Loading branch information
Showing
6 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Entities tests | |
on: | ||
push: | ||
branches: | ||
- trunk | ||
- main | ||
paths: | ||
- "entities/**" | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "Entities devcontainer", | ||
"dockerComposeFile": [ | ||
"../docker-compose.yml" | ||
], | ||
"service": "entities", | ||
"workspaceFolder": "/czid-platformics/entities", | ||
"shutdownAction": "echo shutting down", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"extensions.verifySignature": false | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.black-formatter", | ||
"matangover.mypy", | ||
"GitHub.copilot" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: Entities", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "api.main", | ||
// Stop the normal webserver so we can start a new one attached to our debugger. | ||
"preLaunchTask": "stopservices", | ||
// Turn the normal server back on when we're done debugging. | ||
"postDebugTask": "startservices", | ||
"jinja": true, | ||
"justMyCode": true | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "stopservices", | ||
"command": "supervisorctl", | ||
"args": ["-c", "/czid-platformics/entities/etc/supervisord.conf", "stop", "all"] | ||
}, | ||
{ | ||
"label": "startservices", | ||
"command": "supervisorctl", | ||
"args": ["-c", "/czid-platformics/entities/etc/supervisord.conf", "start", "all"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters