-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore: add cymbal to hobby docker #41841
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -281,6 +281,22 @@ services: | |
| SKIP_READS: 'false' | ||
| FILTER_MODE: 'opt-out' | ||
|
|
||
| cymbal: | ||
| image: ghcr.io/posthog/posthog/cymbal:master | ||
| build: | ||
| context: rust/ | ||
| args: | ||
| BIN: cymbal | ||
| restart: on-failure | ||
| environment: | ||
| DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog' | ||
| KAFKA_HOSTS: 'kafka:9092' | ||
|
Comment on lines
+291
to
+293
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: missing required environment variables for cymbal. Based on
compare with the Prompt To Fix With AIThis is a comment left during a code review.
Path: docker-compose.base.yml
Line: 291:293
Comment:
**logic:** missing required environment variables for cymbal. Based on `rust/cymbal/src/config.rs:71-141`, cymbal requires:
- `REDIS_URL` (used for caching, see line 139-140)
- Object storage config: `OBJECT_STORAGE_ENDPOINT`, `OBJECT_STORAGE_BUCKET`, `OBJECT_STORAGE_ACCESS_KEY_ID`, `OBJECT_STORAGE_SECRET_ACCESS_KEY`, `OBJECT_STORAGE_FORCE_PATH_STYLE` (lines 71-87, used for storing symbol sets)
- `MAXMIND_DB_PATH` for geolocation (line 136-137)
compare with the `feature-flags` service configuration at lines 304-322 which includes all these. without these, cymbal will fail to start or function correctly
How can I resolve this? If you propose a fix, please make it concise.
daibhin marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this works yet because I tested a self-hosted deploy and cymbal threw these errors: Based on some other issues (#41581 and #32607 specifically) I wonder if this is because of a wider issue with Kafka on self-hosted installs |
||
| depends_on: | ||
| db: | ||
| condition: service_healthy | ||
| kafka: | ||
| condition: service_started | ||
|
|
||
| feature-flags: | ||
| image: ghcr.io/posthog/posthog/feature-flags:master | ||
| build: | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -285,6 +285,13 @@ services: | |||||||||||||||
| file: docker-compose.base.yml | ||||||||||||||||
| service: property-defs-rs | ||||||||||||||||
|
|
||||||||||||||||
| cymbal: | ||||||||||||||||
| build: | ||||||||||||||||
| context: ./posthog/rust | ||||||||||||||||
| extends: | ||||||||||||||||
| file: docker-compose.base.yml | ||||||||||||||||
| service: cymbal | ||||||||||||||||
|
||||||||||||||||
| service: cymbal | |
| service: cymbal | |
| depends_on: | |
| db: | |
| condition: service_healthy | |
| kafka: | |
| condition: service_started |
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.
logic: missing depends_on declarations. cymbal requires database, kafka, redis, and objectstorage to be available before starting. compare with feature-flags service at lines 312-314 which declares dependencies. without this, cymbal may attempt to start before its dependencies are ready, causing startup failures
Prompt To Fix With AI
This is a comment left during a code review.
Path: docker-compose.hobby.yml
Line: 288:293
Comment:
**logic:** missing `depends_on` declarations. cymbal requires database, kafka, redis, and objectstorage to be available before starting. compare with `feature-flags` service at lines 312-314 which declares dependencies. without this, cymbal may attempt to start before its dependencies are ready, causing startup failures
How can I resolve this? If you propose a fix, please make it concise.
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.
logic: missing volume mount for GeoLite2 database. cymbal needs access to the MaxMind database file (see
config.rs:136-137andconfig.rs:174-182). thefeature-flagsservice at line 302-303 includesvolumes: - ./share:/sharefor this purpose. without this mount,MAXMIND_DB_PATHwill point to a non-existent filePrompt To Fix With AI