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 0685795
Browse filesBrowse the repository at this point in the historyBrowse files
Return the examples and package steps to DocumentDB 1.0.0 (#97)
DocumentDB 1.0.1 is withdrawn: its extension version 1.0-1 has no upgrade path to later releases. This reverts #96 except the operator 1.1.1 text, which does not depend on 1.0.1.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Co-authored-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: documentdb-local/index.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: Learn how to install and run DocumentDB Local using Docker for loca
7
7
8
8
DocumentDB Local provides a lightweight, containerized environment for developing and testing applications locally, including prototyping and integration testing.
9
9
10
-
The examples below use the PostgreSQL 17 image from release **1.0.1**, a [security update](../getting-started/release-notes-1.0.md#101-security-update) of 1.0. Images for PostgreSQL 15 to 18 are tagged `pg15-1.0.1` to `pg18-1.0.1`, for Linux amd64 and arm64; `latest` points to `pg17-1.0.1`. Use a versioned tag when you need a reproducible setup. The `1.0.0` tags are still published, but those images contain a vulnerable `libbrotli1`. The [1.0 release notes](../getting-started/release-notes-1.0.md) list what changed and the known issues.
10
+
The examples below use the PostgreSQL 17 image from release **1.0.0**. Images for PostgreSQL 15 to 18 are tagged `pg15-1.0.0` to `pg18-1.0.0`, for Linux amd64 and arm64; `latest` points to `pg17-1.0.0`. Use a versioned tag when you need a reproducible setup. The [1.0 release notes](../getting-started/release-notes-1.0.md) list what changed and the known issues.
11
11
12
12
> **Usage telemetry is on by default.** The 1.0 image reports its version, platform and CPU architecture to Scarf at startup and hourly. Turn it off with `-e DOCUMENTDB_USAGE_TELEMETRY=false`. See [Usage telemetry](#usage-telemetry).
13
13
@@ -20,7 +20,7 @@ The examples below use the PostgreSQL 17 image from release **1.0.1**, a [securi
20
20
Get the Docker container image using `docker pull`.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
49
-
5aff734a3591 ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1 "/bin/bash -c '/home…" 5 seconds ago Up 4 seconds (health: starting) 127.0.0.1:10260->10260/tcp docdb
49
+
5aff734a3591 ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0 "/bin/bash -c '/home…" 5 seconds ago Up 4 seconds (health: starting) 127.0.0.1:10260->10260/tcp docdb
50
50
```
51
51
52
52
> The exported variables are reused by the client examples below; if you open a new shell, set them again. The guards stop an empty value from falling through to the image's public default credentials, which the container still accepts but warns about loudly. The credentials are passed as environment variables because `--username` and `--password` arguments stay visible in the container's process list.
@@ -155,7 +155,7 @@ or `--disable-usage-telemetry` (or `--usage-telemetry false`) after it. `NO_ANAL
155
155
156
156
In CI, turn it off explicitly with `-e DOCUMENTDB_USAGE_TELEMETRY=false`. The image skips telemetry only when `CI`, `GITHUB_ACTIONS` or `TF_BUILD` is set to a non-empty value in the container's own environment, and `docker run` doesn't pass the runner's variables through: a container started on a CI runner still reports unless you forward one, for example `-e GITHUB_ACTIONS`. `--enable-telemetry` is a separate setting for the gateway's own metrics and doesn't affect this.
157
157
158
-
The [privacy statement](https://github.com/documentdb/documentdb/blob/v1.0-1/documentdb-local/PRIVACY.md) has the details. The image also includes it at `/home/documentdb/PRIVACY.md`.
158
+
The [privacy statement](https://github.com/documentdb/documentdb/blob/v1.0-0/documentdb-local/PRIVACY.md) has the details. The image also includes it at `/home/documentdb/PRIVACY.md`.
Seeding is one-shot per data volume; use a new, empty volume to seed again. A direct loader rerun tolerates duplicate keys rather than duplicating documents. See the [versioned sample-data guide](https://github.com/documentdb/documentdb/tree/v1.0-1/documentdb-local/sample-data) for manual loader instructions.
176
+
Seeding is one-shot per data volume; use a new, empty volume to seed again. A direct loader rerun tolerates duplicate keys rather than duplicating documents. See the [versioned sample-data guide](https://github.com/documentdb/documentdb/tree/v1.0-0/documentdb-local/sample-data) for manual loader instructions.
177
177
178
178
## Container lifecycle
179
179
@@ -185,8 +185,6 @@ Seeding is one-shot per data volume; use a new, empty volume to seed again. A di
185
185
186
186
A newer image on an existing data volume doesn't update the DocumentDB extensions in it ([#773](https://github.com/documentdb/documentdb/issues/773)), so the volume keeps the old schema under the new binaries. Upgrading a volume in place is not supported in 1.0. To move data from a 0.117 container to 1.0, export it with `mongodump`, start a 1.0 container on a new volume, and load it with `mongorestore`. The PostgreSQL major version of the image must also match the one that initialized the volume.
187
187
188
-
The exception is 1.0.0 to 1.0.1: the schema is the same, so a 1.0.0 volume works under the 1.0.1 image for the same PostgreSQL version. Stop the 1.0.0 container, then start the 1.0.1 image on the volume. `hello` then reports `[ '1.0-0', '1.0.1' ]`: the extension version recorded in the volume, then the loaded library.
189
-
190
188
If you do start a 1.0 image on a volume an older container used, the 1.0 image refuses to start while the old container's `postmaster.pid` is still there; see [Container lifecycle](#container-lifecycle) for the override and removing it afterward. For 0.116 and 0.117, stop the old container with `docker stop` first, which removes the file; after `docker kill`, `docker rm -f` or a crash it stays. Images 0.114 and earlier don't normally stop PostgreSQL cleanly, so their volumes usually keep the file.
Point it inside the data directory rather than at a volume of its own: a separate volume is created root-owned, and the gateway - which runs as an unprivileged user - cannot write its key there. The trade-off is that the key is included in any backup of the data volume. If the entrypoint ever has to repair the data directory's ownership (it does when the owner doesn't match, or with `DOCUMENTDB_FORCE_OWNERSHIP_REPAIR=true`), it runs `chmod -R 750` over the directory, which leaves the private key group-readable rather than owner-only.
Copy file name to clipboardExpand all lines: getting-started/prebuilt-packages.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Get first-party packages from [documentdb.io](https://documentdb.io/packages), e
19
19
20
20
## First-party packages
21
21
22
-
The current release is [`v1.0-1`](https://github.com/documentdb/documentdb/releases/tag/v1.0-1), published on **2026-11-10**, a [security update](release-notes-1.0.md#101-security-update) of 1.0. See the [1.0 release notes](release-notes-1.0.md) for what changed and the known issues. First-party CI builds and tests the full stack for:
22
+
The current release is [`v1.0-0`](https://github.com/documentdb/documentdb/releases/tag/v1.0-0), published on **2026-10-19**. See the [1.0 release notes](release-notes-1.0.md) for what changed and the known issues. First-party CI builds and tests the full stack for:
23
23
24
24
| Distribution | PostgreSQL | Architectures |
25
25
| --- | --- | --- |
@@ -231,23 +231,23 @@ No package for your target? The supplied scripts build DEB or RPM packages with
231
231
Use a Linux build environment with Git, Docker, Bash 4+, and GNU utilities, on the target architecture. For example, build the extension for Debian 12 and PostgreSQL 18:
Pass `--version 1.0.1` explicitly, so the package version doesn't depend on which tags your clone has.
239
+
Pass `--version 1.0.0` explicitly. The `v1.0-0` tag shares its commit with `v1.0-RC2`, and without `--version`the build takes its version from the tag `git describe` picks, which can be the release candidate.
240
240
241
241
For the full stand-alone DEB set, make `dpkg-deb` available on the build host, then build the gateway and shared packages:
./packaging/build_extra_packages.sh --type deb --pg 18 \
247
-
--version 1.0.1 --output-dir packages
247
+
--version 1.0.0 --output-dir packages
248
248
```
249
249
250
-
Outputs go into `packages/`. RPM extras instead require host `rpmbuild` and applicable RPM macros. The [versioned packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md) lists targets, prerequisites, and clean-install checks.
250
+
Outputs go into `packages/`. RPM extras instead require host `rpmbuild` and applicable RPM macros. The [versioned packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md) lists targets, prerequisites, and clean-install checks.
251
251
252
252
Validate builds for targets outside the first-party CI matrix in your environment. PostgreSQL 15 is extension-only; package-managed gateway setup requires PostgreSQL 16 or newer.
253
253
@@ -256,7 +256,7 @@ Validate builds for targets outside the first-party CI matrix in your environmen
256
256
Use release assets when you need an exact first-party version rather than a repository install. Each release publishes its Linux packages with `SHA256SUMS` and `manifest.txt`.
For PostgreSQL 17, replace the two PostgreSQL-specific files with their `17` equivalents; the shared packages stay the same. The `documentdb` meta package always selects PG18.
295
295
296
296
For extension-only use, install the extension and tools files, then [configure PostgreSQL](#extension-only-installation). For a full stack, [run the wizard](#2-run-the-setup-wizard) with the installed major: use `--pg-version 17` for PG17.
297
297
298
-
Filename prefixes such as `ubuntu24.04-` and `rhel9-` identify release assets, not package names. DEB extensions use version `1.0-1`, while other packages use `1.0.1`; RPMs use `1.0.1` with release `1` or `1.el9`.
298
+
Filename prefixes such as `ubuntu24.04-` and `rhel9-` identify release assets, not package names. DEB extensions use version `1.0-0`, while other packages use `1.0.0`; RPMs use `1.0.0` with release `1` or `1.el9`.
299
299
300
300
### Offline / air-gapped
301
301
302
302
Release assets do not include the full dependency set. Stage PostgreSQL, its required extensions, and all other dependencies on a connected machine of the **same distro, release, and architecture**. Include dependencies already installed on the staging machine. Follow [Offline / air-gapped install](https://documentdb.io/docs/linux-packages/offline/) to serve the bundle as a local repository.
303
303
304
304
## Upgrading to 1.0
305
305
306
-
A 0.116, 0.117 or 1.0.0 package installation can be upgraded in place; move the whole stack together. Upgrading the packages replaces the libraries and installs the upgrade scripts, but doesn't change the databases: each PostgreSQL instance keeps reporting the old extension version until its extensions are updated. Back up first; there is no downgrade.
306
+
A 0.116or 0.117 package installation can be upgraded in place; move the whole stack together. Upgrading the packages replaces the libraries and installs the upgrade scripts, but doesn't change the databases: each PostgreSQL instance keeps reporting the old extension version until its extensions are updated. Back up first; there is no downgrade.
307
307
308
308
Upgrading a host that ever ran a release candidate isn't supported, and the installer refuses it. Install 1.0 on a fresh host and move the data with `mongodump` and `mongorestore`. Removing packages keeps the PostgreSQL data; don't reset or reuse an adopted instance as an upgrade workaround.
309
309
@@ -371,11 +371,11 @@ Connect with `mongosh` and run:
371
371
db.hello().internal.documentdb_versions
372
372
```
373
373
374
-
It prints the installed extension version, then the loaded library version: `[ '1.0-1', '1.0.1' ]` for 1.0.1. If the first value is from an older release than the second, such as `1.0-0`with `1.0.1`, the extensions weren't updated. See [`hello`](https://documentdb.io/docs/reference/commands/diagnostic/hello/).
374
+
It should print `[ '1.0-0', '1.0.0' ]`: the installed extension version, then the loaded library version. If the first value is still `0.116-0`or `0.117-0`, the extensions weren't updated. See [`hello`](https://documentdb.io/docs/reference/commands/diagnostic/hello/).
375
375
376
376
### Containers
377
377
378
-
A newer DocumentDB Local image on an existing data volume does not update the extensions ([#773](https://github.com/documentdb/documentdb/issues/773)). Start 1.0 on a new volume and move the data with `mongodump` and `mongorestore`. A 1.0.0 volume is the exception: it works under the 1.0.1 image as it is. See [Upgrading the image](../documentdb-local/index.md#upgrading-the-image).
378
+
A newer DocumentDB Local image on an existing data volume does not update the extensions ([#773](https://github.com/documentdb/documentdb/issues/773)). Start 1.0 on a new volume and move the data with `mongodump` and `mongorestore`. See [Upgrading the image](../documentdb-local/index.md#upgrading-the-image).
0 commit comments