Skip to content

Fix Linux package install guide and Package Finder#73

Merged
abinav2307 merged 3 commits intomainfrom
docs/package-guide-accuracy
Apr 30, 2026
Merged

Fix Linux package install guide and Package Finder#73
abinav2307 merged 3 commits intomainfrom
docs/package-guide-accuracy

Conversation

@guanzhousongmicrosoft
Copy link
Copy Markdown
Contributor

@guanzhousongmicrosoft guanzhousongmicrosoft commented Apr 30, 2026

Summary

Fixes the Linux package install experience on /packages and /docs/getting-started/packages so the website matches the packages that are actually published. Repository-backed installs provide the DocumentDB PostgreSQL extension package; they do not currently provide a gateway package, setup helper, or systemd service.

The updated guide now gives users a path from package install to successful mongosh connectivity: install the extension package, start PostgreSQL with the packaged extension, build/run the gateway from source, and verify the endpoint with mongosh.

What changed

  • Remove nonexistent documentdb_gateway / documentdb-gateway packages from generated APT/RPM commands.
  • Remove the nonexistent documentdb-setup follow-up flow from the Package Finder UI and package guide.
  • Clarify that Linux packages install PostgreSQL extension files, while Docker remains the shortest gateway-backed local setup.
  • Add clean Docker container guidance: omit sudo, set DEBIAN_FRONTEND=noninteractive before APT commands, install prerequisites and mongosh as root, then switch to an unprivileged user for PostgreSQL/gateway steps.
  • Add gateway-from-source guidance, including the TERM=xterm workaround for non-TTY shells and troubleshooting notes for package install/gateway startup issues.
  • Keep PACKAGE-INSTALL.md aligned with the rendered website package guide.

Verification

End-to-end package install flow was tested in a fresh Ubuntu amd64 Docker container:

  1. Ran the generated APT package command for postgresql-16-documentdb.
  2. Confirmed the package installed and exposed the DocumentDB extension files.
  3. Started PostgreSQL with the packaged extension using ./scripts/start_oss_server.sh.
  4. Built and started the gateway from source using ./scripts/build_and_start_gateway.sh.
  5. Connected with mongosh localhost:10260 ... and verified db.runCommand({ ping: 1 }) returns { ok: 1 }.

Repo checks were run for the changed website files.

guanzhousongmicrosoft and others added 3 commits April 29, 2026 19:57
Align package docs with the published extension packages and source packaging behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com>
…ackage install flow

Two high-severity gaps that block new users following /packages and
/docs/getting-started/packages in a clean Docker container:

1. apt install hangs on the tzdata postinst prompt when the docs
   recommend omitting sudo for a clean root container, because
   the default front-end is interactive. Users are stuck with no
   visible error.

2. ./scripts/build_and_start_gateway.sh calls tput setaf under set -e -u.
   In any non-TTY context (docker exec without -t, docker exec -d, nohup,
   background &, CI) tput aborts the script before the build starts.
   The error message and absence of any build output make this look like
   a silent build failure.

Verified end-to-end with the new wording in a fresh Ubuntu 22.04 amd64
container (PG 16): apt install completes, gateway builds, and mongosh
connects to DocumentDB v0.110-0.

Edits:
- app/services/articleService.ts: expand the clean-container note,
  add 'export TERM=xterm' to the host gateway example with a precise
  comment explaining when to skip it, add an expectation-setter for
  first-build time, and add two troubleshooting bullets covering both
  failure modes.
- app/packages/page.tsx: APT-only inline tip directing root-container
  users to run 'export DEBIAN_FRONTEND=noninteractive' as a separate
  step before the chained apt command (a single-command prefix would
  not cover the second 'apt install' in the chain).
- PACKAGE-INSTALL.md: mirror the same wording so the spec mirror stays
  in sync with the rendered guide.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@guanzhousongmicrosoft guanzhousongmicrosoft changed the title docs: warn about DEBIAN_FRONTEND tzdata hang and TERM tput abort in package install flow Fix Linux package install guide and Package Finder Apr 30, 2026
@abinav2307 abinav2307 merged commit 135097e into main Apr 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants