-
Notifications
You must be signed in to change notification settings - Fork 15.8k
fix: docker-compose file and superset-core #35235
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
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
a37af65
to
932d074
Compare
932d074
to
dcab004
Compare
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.
I've completed my review and didn't find any issues.
Files scanned
File Path | Reviewed |
---|---|
docker/docker-entrypoint.sh | ✅ |
docker/docker-bootstrap.sh | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
docker/docker-bootstrap.sh
Outdated
if [ "$(whoami)" = "root" ] && command -v uv > /dev/null 2>&1; then | ||
echo "Installing critical dependencies for dev mode..." | ||
# Install pydantic first as it's needed for imports | ||
uv pip install --no-cache-dir "pydantic>=2.8.0" |
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.
This should be in requirements/development.txt already (?)
docker/docker-bootstrap.sh
Outdated
# Install pydantic first as it's needed for imports | ||
uv pip install --no-cache-dir "pydantic>=2.8.0" | ||
echo "Installing base requirements" | ||
uv pip install -r /app/requirements/base.txt |
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.
Should we do development.txt here?
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.
@mistercrunch I think there are folks that use it for production even if not recommended 🤷🏼♂️
docker/docker-bootstrap.sh
Outdated
echo "Installing base requirements" | ||
uv pip install -r /app/requirements/base.txt | ||
echo "Reinstalling superset-core in editable mode" | ||
uv pip install -e /app/superset-core |
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.
wondering what this is about (?) I have to admit I don't understand the new structure
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.
@mistercrunch superset-core
is similar to superseet-ui-core
. I recommend reading [SIP-177] Proposal for SQL Lab Extensions to understand the structure better.
docker/docker-entrypoint.sh
Outdated
fi | ||
|
||
# Now run the actual bootstrap script | ||
exec "$@" No newline at end of file |
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.
@betodealmeida You need a blank line at the end here to fix CI 😉
exec "$@" | |
exec "$@" | |
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.
Thank you for the fix @betodealmeida!
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.
Nice! thks for the fix @betodealmeida. LGTM, yet would be great if we could avoid the hardcoded pydantic install
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.
LGTM!
@betodealmeida It seems there's an error yet: https://github.com/apache/superset/actions/runs/17953994393/job/51060324919 |
I'll fix that in a separate PR. |
SUMMARY
docker compose up
stopped working because of the introduction ofsuperset-core
.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION