-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[WIP] feat(docker): enable single curl of docker-compose.yml #25546
base: master
Are you sure you want to change the base?
[WIP] feat(docker): enable single curl of docker-compose.yml #25546
Conversation
Current blocker:
|
@sebastianliebscher Thank you for this! This will be a big win. What do you think is needed to unblock the |
@sfirke Both, I'm not sure which is the best way to initlialize the Postgres db, without the I'm thinking of the following possibilities:
I think 3. is not a good idea as it is too much customization. 2. I am not familiar with superset load-examples. I would go for 1. What do you think? |
Ooh I also like #1. Another bonus: I loaded the example data into what became my production instance and it was hard to get it out b/c it was intermingled with the metadata (unless I'm confused). If we had this paradigm you propose in #1 I could have just dropped the examples container (or dropped the data source in Superset), easy peasy. Would the pip workflow continue as is, if we make this modification to docker? |
Thinking more about this, and the fact that Superset 4.0 will not support SQLite as a metadata db -- would we need a whole separate Postgres container for the examples, or just a separate db (and maybe user) in the same Postgres container? |
Yes, the pip workflow still uses SQLite by default.
Ideally we should just use one Postgres service and have Superset's metadata separated from the examples, yes. This was already achieved and merged by #25003. But that requires an initialization script ( The current solution in this PR uses two separate Postgres services with examples enabled by default. If a user decides not to use examples, it is as easy as deleting the |
Is this still needed, or should we close it out? |
SUMMARY
As the title says, this PR tries to address #24987
docker/
directory into the container, moved the scripts in docker/ into the docker image.env
intosuperset_config.py
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION