-
Notifications
You must be signed in to change notification settings - Fork 5.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
Cleanup and unify Dockerfiles #1333
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1333 +/- ##
=======================================
Coverage 32.48% 32.48%
=======================================
Files 41 41
Lines 4907 4907
Branches 1120 1120
=======================================
Hits 1594 1594
Misses 3187 3187
Partials 126 126
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Nice PR! I believe there are more changes that need to be made:
|
We could add a pointer here: https://microsoft.github.io/autogen/docs/Contribute |
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.
Dockerfiles under .devcontainer/base
, .devcontainer/dev
and .devcontainer/full
are based on python:3.11-slim-bookworm
, while under .devcontainer
and .devcontainer/studio
under mcr.microsoft.com/vscode/devcontainers/python:3.10
.
Why different base Dockerfiles?
Why not use mcr.microsoft.com/vscode/devcontainers/*
based images that are optimized for usage with VSCode (see under https://github.com/microsoft/vscode-dev-containers/tree/main/containers/python-3)?
There is no specific reason. They are added by different people. I believe we can unify these. For base images, I don't have a good sense of which one is better. If the ones optimized for VS code are preferred, I am fine switching to those. @davorrunje do you suggest changing all the base images to a VS code optimized one, .e.g., |
@gagb revised relevant documentation needed because of the cleanup. For the base image, Davor's suggestion for using the VS code-optimized one sounds good to me. But I haven't changed that. I tried |
It is probably not worth the effort trying to get a custom Dockerfile to work well both locally and in Codespaces, it is safer to use |
What's the reason to shift to 3.11 image when current is using 3.10? Also I locally built our primary base Dockerfile i.e.,
Given that this works, what is the utility of Error if sudo isn't specified.
My suggestion:
|
I removed |
I am not sure about moving additional directories under |
@davorrunje please see GitHub's documentation for why subdirectories: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#devcontainerjson ScreenshotHow to use alt containerSee reply to Chi here: #1241 (comment) (This is already in the documentation in this PR in |
Thanks for the explanations 👍 |
* Create studio subfolder in devcontainer * Update to follow readme instructions * Move dockerfiles from samples to .devcontainer * Fix typo in file name * Update readme * update doc * Remove base dockerfile and update readme --------- Co-authored-by: Qingyun Wu <[email protected]> Co-authored-by: Davor Runje <[email protected]>
* Create studio subfolder in devcontainer * Update to follow readme instructions * Move dockerfiles from samples to .devcontainer * Fix typo in file name * Update readme * update doc * Remove base dockerfile and update readme --------- Co-authored-by: Qingyun Wu <[email protected]> Co-authored-by: Davor Runje <[email protected]>
* Create studio subfolder in devcontainer * Update to follow readme instructions * Move dockerfiles from samples to .devcontainer * Fix typo in file name * Update readme * update doc * Remove base dockerfile and update readme --------- Co-authored-by: Qingyun Wu <[email protected]> Co-authored-by: Davor Runje <[email protected]>
Why are these changes needed?
Related issue number
#1286 #1332
Checks