You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dcf5f05
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -382,9 +382,11 @@ For an adopted instance, use the operator's existing PostgreSQL connection inste
382
382
## Upgrading
383
383
384
384
> [!WARNING]
385
-
> In-place package upgrades from earlier releases are not supported yet. Use a clean host,
386
-
> or remove the earlier packages and perform the current
387
-
> [fresh installation](/docs/getting-started/packages). Upgrading only
385
+
> In-place package upgrades from earlier releases are not supported yet. Use a clean host
386
+
> or a new, empty PostgreSQL instance and follow the current
387
+
> [fresh installation](/docs/getting-started/packages). Removing packages alone does not
388
+
> create a fresh database: package removal preserves PostgreSQL data and in-database content,
389
+
> and a later setup run reuses an initialized data directory. Upgrading only
388
390
> \`postgresql-N-documentdb\` does not install the gateway, tools, common payload, or
389
391
> \`documentdb-N\`.
390
392
@@ -609,7 +611,7 @@ Then continue with [Set up and connect](/docs/getting-started/packages#set-up-an
609
611
If the target already has PostgreSQL, the PGDG extension dependencies (\`postgresql-N-cron\`, \`-pgvector\`, \`-postgis-3\`) and \`jq\`, you do not need a bundle:
610
612
611
613
- **Extension only, one file** — \`sudo apt install ./ubuntu24.04-postgresql-18-documentdb_0.117-0_amd64.deb\`. No gateway and no \`documentdb-setup\`.
612
-
- **Full stack from the release assets** — pass all six files for your platform to a *single* \`apt install\` / \`dnf install\`. Local files resolve dependencies only against enabled repositories, so the meta package on its own fails with \`Depends: documentdb-18 ... but it is not installable\`.
614
+
- **Full stack from the release assets** — pass the five packages for the selected PostgreSQL major to a *single* \`apt install\` / \`dnf install\`: \`documentdb-N\`, the matching \`postgresql-N-documentdb\` / \`postgresqlN-documentdb\` extension, \`documentdb-common\`, \`documentdb-gateway\`, and \`documentdb-postgresql-tools\`. For PostgreSQL 18 only, the optional \`documentdb\` meta package may be included; it selects \`documentdb-18\`. Local files resolve dependencies only against enabled repositories, so a package whose dependencies are not included still fails.
613
615
`;
614
616
615
617
constvscodeQuickStartGuideContent=`# Visual Studio Code Quick Start
@@ -639,10 +641,10 @@ For the fastest local setup, start DocumentDB Local with Docker:
If you prefer a host installation instead of Docker, use the [Linux Packages Quick Start](/docs/getting-started/packages) on a distribution in the current release matrix.
@@ -729,14 +731,19 @@ Connect to DocumentDB from Node.js using the official MongoDB driver.
If you prefer a host installation instead of Docker, use the [Linux Packages Quick Start](/docs/getting-started/packages) on a distribution in the current release matrix.
854
883
884
+
> Replace the placeholder values before running the command. The Python process below
885
+
> reads the same two environment variables, so the credentials are passed as raw values
886
+
> rather than embedded in a URI.
887
+
>
855
888
> DocumentDB Local uses a self-signed certificate by default, so the quickest local
"Set DOCUMENTDB_USERNAME and DOCUMENTDB_PASSWORD before running this script"
923
+
)
886
924
887
-
client = MongoClient(uri)
925
+
client = MongoClient(
926
+
"mongodb://localhost:10260/",
927
+
username=username,
928
+
password=password,
929
+
authSource="admin",
930
+
tls=True,
931
+
tlsAllowInvalidCertificates=True,
932
+
)
888
933
889
934
try:
890
935
client.admin.command("ping")
@@ -934,15 +979,19 @@ for store in client["StoreData"]["stores"].find(
934
979
935
980
## Use a trusted local certificate instead
936
981
937
-
If you want certificate validation instead of \`tlsAllowInvalidCertificates=true\`, copy the generated certificate from the container and pass it to \`MongoClient\`.
982
+
If you want certificate validation instead of \`tlsAllowInvalidCertificates=true\`, copy the generated certificate from the container, then replace the \`MongoClient\` call above with the trusted-certificate version below.
If you prefer a host installation instead of Docker, use the [Linux Packages Quick Start](/docs/getting-started/packages) on a distribution in the current release matrix.
@@ -1000,8 +1049,8 @@ If you prefer a host installation instead of Docker, use the [Linux Packages Qui
1000
1049
1001
1050
\`\`\`bash
1002
1051
mongosh localhost:10260 \\
1003
-
-u <YOUR_USERNAME> \\
1004
-
-p <YOUR_PASSWORD> \\
1052
+
-u '<YOUR_USERNAME>' \\
1053
+
-p '<YOUR_PASSWORD>' \\
1005
1054
--authenticationMechanism SCRAM-SHA-256 \\
1006
1055
--tls \\
1007
1056
--tlsAllowInvalidCertificates
@@ -1062,8 +1111,8 @@ the generated certificate from the container and pass it to \`mongosh\`.
0 commit comments