[Maintainability] Harden docker/fdb/start-fdb.sh for non-default networking, blob URLs and wording
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 73/100
Research direction
Start with docker/fdb/start-fdb.sh and docs/blob-granules.md, then check how the compose file supplies networking and FDB_BG_URL. Make the script handle or clearly reject the networking and blob path cases in the issue, and correct the warning wording. Done means each listed behavior is explicit and the requested shell, lint, compose config, and fresh startup checks pass.
Written by the indexing model from the issue text.
Description
Description
docker/fdb/start-fdb.sh replaced the image's fdb.bash in #160 / PR #170. It works for the current compose file, but it is not a general replacement and has avoidable failure modes:
- No public-IP validation.
:15usespublic_ip=$(hostname -i | awk '{print $1}').hostname -ican return an empty string or several addresses;awkthen produces an empty or arbitrary public address andfdbserverfails with a confusing address error. - Custom blob URL is not handled.
:19always creates/var/fdb/blobs, while:31passes${FDB_BG_URL:-file:///var/fdb/blobs/}. A customfile://directory outside the default is not created, and the script does not say whether custom paths are supported. (FDB may create the parent on write, but the contract should be explicit.) - Host networking is not honoured.
:15always useshostname -i; the image'sfdb.bashsupportedFDB_NETWORKING_MODE=host(public IP127.0.0.1). The current compose file has no host networking, so this is safe today, but the script reads like a drop-in replacement. - "Silently ignored" is inaccurate.
:7anddocs/blob-granules.md:31-32say an uppercase--knob-BG_URLis "silently ignored". FDB 7.3.75 printsWARNING: Invalid knob option 'BG_URL'(and logsInvalidKnobName) before ignoring it; "ignored with a warning" is accurate.
Impact: confusing startup failures when the script is reused outside this compose file, and documentation that understates what FDB logs. Not a blocker for the current stack (single network, default blob path).
Where to start
- Validate
public_ip([ -n "$public_ip" ]) and exit with a clear message; consider rejecting multiple addresses unless one is explicitly selected. - If
FDB_BG_URLstarts withfile://, derive the directory andmkdir -pit; otherwise document that only/var/fdb/blobsis supported and fail early for unsupported URLs. - Document that the script is compose-specific and does not support
FDB_NETWORKING_MODE=host, or add the host-networking branch. - Change "silently ignored" to "ignored with a warning" in the script comment and
docs/blob-granules.md.
Definition of done
- An empty
hostname -iproduces a clear error, not anfdbserveraddress error. - A custom
FDB_BG_URL=file:///...path is either created or explicitly rejected/documented. - Host networking is either supported or documented as unsupported.
- The "silently ignored" wording is corrected in the script and docs.
-
shellcheck 0.11.0,bin/lint.sh,docker compose config -qand a freshdocker compose up -dpass.
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 23
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crazy-goat/fdb-php
-
priority:medium type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crazy-goat/fdb-php#192 ·
Maintainers usually reply within 1 day
-
good first issue priority:low type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
crazy-goat/fdb-php#188 ·
Maintainers usually reply within 1 day
-
good first issue priority:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crazy-goat/fdb-php#184 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue priority:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
crazy-goat/fdb-php#182 ·
Maintainers usually reply within 1 day
-
priority:medium type:security
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crazy-goat/fdb-php#180 · 1 comment ·
Maintainers usually reply within 1 day
All issues in crazy-goat/fdb-php
Similar issues
-
enhancement priority Sales
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
novalo-dev/Prestashop-MCP-Server#201 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
web-token/jwt-framework#757 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Include flows spanning the full report time windowPossibly taken @somethingwithproof claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Cacti/plugin_flowview#306 ·
Maintainers usually reply within 1 day
-
bug origin: upstream priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mattytap/Mattytap-Sermons#105 ·