chore: Docs and config improvements for Docker setup#35896
chore: Docs and config improvements for Docker setup#35896Vitor-Avila merged 2 commits intomasterfrom
Conversation
Code Review Agent Run #71bc16Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Interaction Diagram by BitosequenceDiagram
participant Dev as Developer
participant DockerBuild as Docker Build Pipeline<br/>🔄 Updated | ●●○ Medium
participant Playwright as Playwright Module<br/>🔄 Updated | ●●○ Medium
participant Pillow as Pillow Dependency<br/>🔄 Updated | ●●○ Medium
participant WSConfig as WebSocket Config<br/>🔄 Updated | ●●○ Medium
participant WSService as WebSocket Service
participant Redis as Redis Cache
Dev->>DockerBuild: Build with INCLUDE_CHROMIUM/FIREFOX flags
DockerBuild->>Playwright: Set PLAYWRIGHT_BROWSERS_PATH env
Playwright->>Pillow: Install playwright + Pillow together
DockerBuild->>WSConfig: Mount config.example.json (read-only)
WSConfig->>WSService: Load WebSocket configuration
WSService->>Redis: Connect to Redis for async events
Redis-->>WSService: Return connection status
Note over Dev, WSConfig: Config overrides via .env-local and custom config.json (git-ignored)
Critical path: Developer->Docker Build Pipeline->Playwright Module->Pillow Dependency->WebSocket Config->WebSocket Service->Redis Cache
|
|
Looks like you are adding Pillow to the base Docker image. I'm fine with that, and once this PR is in a major release I'll update https://superset.apache.org/docs/installation/docker-builds/ to remove Pillow as an add-on. But are Playwright and Chrome still not installed in the |
Oh, you're right. I actually included it there just because in this example we have: I saw there "Pillow for Alerts & Reports to generate PDFs of dashboards" and thought it was also needed for PDF reports which we want to use Playwright as well. Let me remove that part -- thanks for catching it! |
I had trouble getting Playwright to work out of the box with As for the use-cases, you're correct. It's possible the user is only focusing on Alerts & Reports (which can use Playwright) or on the other hand just looking to have async PDF download in dashboards. |
(cherry picked from commit 0a95f74)
(cherry picked from commit 0a95f74)
(cherry picked from commit 0a95f74)
(cherry picked from commit 0a95f74)
(cherry picked from commit 0a95f74)
SUMMARY
Adding more docs on how to customize/extend Docker settings, and also adding more config files to
.gitignore.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
Run
docker compose buildanddocker compose up -dand confirm things still work proeprly.ADDITIONAL INFORMATION