-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add devcontainer.json
for GitHub/VSCode codespaces
#251
Conversation
Thank you, looks really neat already!
so we need to decide a bit who this is for and then add/change the things so that a smooth setup is possible. Or is the idea that e.g. the user starts something like |
Main benefits (i think) this gives:
It could of course be that maybe this is getting a bit too fancy too soon too perhaps which could be a fine objection if ends up being something that needs more maintenance overhead without a clear and proven benefit. Am going to see if i can get it so that i can run that pre-commit hook from within the codespace (is a good example of a dev tool we'd need to add to the default codespace image etc.). |
Converting PR to draft to reduce any noise while there can be discussion in here if it's something that is needed or wanted. If so then I'm happy to try finalize and updraft once we happy it make sense. |
This for sure could be one option - once you have your codespace then you can run whatever commands you might to spin or some dev service just like you might on your laptop. I think the fact the I think what's suggested in here could be good but could be a bit more complex. For now i think it could make sense to think of this as an easy way to just get yourself either an ephemeral (and in cloud as opposed to laptop) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, thank you!
trying to run pre-commit but hit this: #280 will see if maybe is some node version or stuff i can figure out on my end. |
pre-commit on github seems happy. good to merge? |
Yep happy to merge - unsure exactly how pre-commit seems happy now, assuming its a GH action or something (?). Anyway should be good to merge. |
Hi, @andrewm4894 This is the first time I am using code spaces. Docker build & run worked seamlessly OOB before this change. Either this change broke something, or I am using code spaces incorrectly. If it's the latter, please can you update the QuickStart documentation on how to use this change and code spaces? Thank you! tl;dr before this change default code space allowed me to follow the readme, build and run, with this change I am not able to do that anymore because of missing dependencies (starting with git, docker, etc.) |
hey @eaglespy21 i think this PR (#333) might fix and superseed your issues above. i have just tested it and all looks good - let me know if you hit any issues once its merged or you can try make a code space on my feature branch here if you dont want to wait until its merged: https://github.com/andrewm4894/Open-Assistant/tree/devcontainer-improvements |
Related to #242
This PR adds a minimal
devcontainer.json
to enable running thefrontend-dev
via a GitHub codespace.There is probably a bit more work to do like in here: https://stackoverflow.com/a/68864132/1919374 to extend this to a more complete or full dev env where any service could be worked on.