Commit Graph

8 Commits

Author SHA1 Message Date
Keith T. Garner ddf97e9d52 create web compose varient running puma/debug
In development its often useful to attach a debugger to the running
rails instance. This is a docker-compose override file that will switch
the web container to using puma directly instead of the default of
rails via passenger via nginx.

To use this file, add puma.override.yml after
docker-compose.override.yml in your COMPOSE_FILE environment variable
and rebuild your web container.

flag=none

Change-Id: I152ba49fa88db8d33f1223e8b809894a4a10775e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335727
QA-Review: Keith Garner <kgarner@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-25 20:06:31 +00:00
Aaron Shafovaloff 147b54b0c6 suggest Shopify.ruby-lsp and make default ruby formatter
Change-Id: I1a1cecd2dcdfdf8806ebb4e31c557e62420c3b57
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/338471
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-23 17:01:00 +00:00
Aaron Shafovaloff a7937a35f9 specify prettier as our formatter for JS in .vscode
Change-Id: If27d1689b5aa9710e18c0429927b9a551b07c004
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337875
Reviewed-by: Rohan Chugh <rohan.chugh@instructure.com>
QA-Review: Cameron Ray <cameron.ray@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-17 15:49:54 +00:00
Cody Cutrer ec61d5e5b6 add vscode launch config to run a single spec
Change-Id: I45f0b7881d015417919f041517287148945441e9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/334813
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-12-07 18:38:55 +00:00
Cody Cutrer d1d7ed8e05 recommend GitHub Copilot extension for VSCode
not automatically installed in the devcontainer, since you may not
have a license. but recommended since many (all?) Instructure
employees do have a license

Change-Id: I7c53eca4515105d3f6c33fc64b488bdd832d4e7e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330109
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-10-11 15:48:29 +00:00
Cody Cutrer 4fbc04c506 Add VSCode devcontainer configuration
Change-Id: I1a23005e533e23179da6a73a6730e95cc479cb22
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/329420
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-10-11 14:57:46 +00:00
Isaac Moore 9a1c659a25 Add support for VS Code rdbg extension
This allows remote attachment to the `debug` server in the web container.

closes AE-532
flag=none

test plan:
- install the 'VS Code rdbg` extension
- add `docker-compose/rdbg.override.yml` to your COMPOSE_FILE var
- start a debugging session
- verify interactive debugging works

Change-Id: I5b44c4e0e76c64575f25876af097bcd48f6fde74
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328485
Tested-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-09-22 22:38:30 +00:00
Jon Scheiding 1d688efeb0 Add configurations to enable remote IDE debugging with rdebug-ide
flag=none

test plan:
- Update your .env to include docker-compose/rdebug-ide.override.yml
  in the COMPOSE_FILE variable
- Start your Docker environment
- Configure remote debugging in VS Code or RubyMine
  (see https://instructure.atlassian.net/wiki/x/BACP-w)
- Launch the remote debugger and set a breakpoint somewhere ubiquitous
  (e.g. in `ApplicationController`)
- Navigate to your local Canvas and confirm
  that your breakpoint

Change-Id: I87d7bed838e7a593201a4bfd21f911216329343b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/270409
Reviewed-by: Cody Cutrer <cody@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Jon Scheiding <jon.scheiding@instructure.com>
2021-09-16 18:33:11 +00:00