-
Notifications
You must be signed in to change notification settings - Fork 44.5k
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
Architecture-agnostic dev-container patch, now with Redis 😍 #3102
Architecture-agnostic dev-container patch, now with Redis 😍 #3102
Conversation
Nice man, good work :) |
Thanks! If anyone can test it and throw their errors my way I'd greatly appreciate it. |
Please mention in the PR that the new Dockerfile is an exact copy of the one proposed in #1843: https://github.com/Pwuts/Auto-GPT/blob/262c1edea2333a4a494ed5ff0ecce14e38011931/Dockerfile#L1-L26. Copying without any mention of the source is bad practice in OSS. Same for the |
I've tested this as you mentioned, but rebuilding without cache and I having the following issue when I try to launch autogpt form the terminal:
|
Try doing it again, I just made a change to the |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
For some reason I still get the permission issue:
|
I've tested the master branch and that's working properly, I don't have the permission issues, but if I do the same with this branch checked out then I do. |
And you have nuked your autogpt and redis images from orbit before reopening the PR in VSCode and choosing "Rebuild and reopen in container?" |
I believe that you might be having issues with not properly clearing all associated container files and docker images before building the dev container. this is the output from me running the ID command.
Notice that my uid/gid matches the declerations found in lines 10 and 11 of the My build process on my M1 MacBook Pro is as follows:
|
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #3102 +/- ##
=======================================
Coverage 56.95% 56.95%
=======================================
Files 67 67
Lines 3048 3048
Branches 509 509
=======================================
Hits 1736 1736
Misses 1174 1174
Partials 138 138 ☔ View full report in Codecov by Sentry. |
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.
Looking better, some tweaks remaining. :)
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Background
The old
devcontainer.json
was not architecture agnostic. It would fail to build on ARM devices.Now, with one click, this should automatically start up an Auto-GPT and a Redis container, connect them, and put your VsCode into the development environment of the Auto-GPT container. Regardless of your base operating system or processor architecture.
Changes
Modified the
devcontainer.json
to point at thedocker-compose.yml
instead of thedockerfile
, and modified thedocker-compose.yml
anddockerfile
from PR #1843 to work while nested inside of the.devcontainer
folder, as well as other fixes for dev work such as using a default entry-point and keep alive for TTY.Documentation
In-code comments.
Test Plan
Open PR in VS-Code -> CMD + Shift + P -> Rebuild and Reopen in Dev Container -> Magic!
PR Quality Checklist