Skip to content

Commit 0685795

Browse files
authored
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>
1 parent efed445 commit 0685795

3 files changed

Lines changed: 36 additions & 44 deletions

File tree

‎documentdb-local/index.md‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Learn how to install and run DocumentDB Local using Docker for loca
77

88
DocumentDB Local provides a lightweight, containerized environment for developing and testing applications locally, including prototyping and integration testing.
99

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.
1111

1212
> **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).
1313
@@ -20,7 +20,7 @@ The examples below use the PostgreSQL 17 image from release **1.0.1**, a [securi
2020
Get the Docker container image using `docker pull`.
2121

2222
```bash
23-
docker pull ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1
23+
docker pull ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0
2424
```
2525

2626
## Running
@@ -39,14 +39,14 @@ Then start the container with `docker run`, and use `docker ps` to check that it
3939
docker run -dt -p 127.0.0.1:10260:10260 --name docdb \
4040
-e USERNAME="${DOCUMENTDB_USERNAME:?Set DOCUMENTDB_USERNAME first}" \
4141
-e PASSWORD="${DOCUMENTDB_PASSWORD:?Set DOCUMENTDB_PASSWORD first}" \
42-
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1
42+
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0
4343

4444
docker ps
4545
```
4646

4747
```output
4848
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
5050
```
5151

5252
> 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.
@@ -133,7 +133,7 @@ docker run -dt \
133133
--name docdb \
134134
-e USERNAME="${DOCUMENTDB_USERNAME:?Set DOCUMENTDB_USERNAME first}" \
135135
-e PASSWORD="${DOCUMENTDB_PASSWORD:?Set DOCUMENTDB_PASSWORD first}" \
136-
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1 \
136+
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0 \
137137
--init-data true
138138
```
139139

@@ -155,7 +155,7 @@ or `--disable-usage-telemetry` (or `--usage-telemetry false`) after it. `NO_ANAL
155155

156156
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.
157157

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`.
159159

160160
## Built-in sample data
161161

@@ -173,7 +173,7 @@ db.getSiblingDB("StoreData").stores.countDocuments({}) // 41505
173173
db.getSiblingDB("StoreData").ratings.countDocuments({}) // 2
174174
```
175175

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-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.
177177

178178
## Container lifecycle
179179

@@ -185,8 +185,6 @@ Seeding is one-shot per data volume; use a new, empty volume to seed again. A di
185185

186186
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.
187187

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-
190188
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.
191189

192190
## Feature support
@@ -224,7 +222,7 @@ docker run -dt \
224222
--name docdb \
225223
-e USERNAME="${DOCUMENTDB_USERNAME:?Set DOCUMENTDB_USERNAME first}" \
226224
-e PASSWORD="${DOCUMENTDB_PASSWORD:?Set DOCUMENTDB_PASSWORD first}" \
227-
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1
225+
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0
228226
```
229227

230228
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.

‎getting-started/prebuilt-packages.md‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Get first-party packages from [documentdb.io](https://documentdb.io/packages), e
1919

2020
## First-party packages
2121

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:
2323

2424
| Distribution | PostgreSQL | Architectures |
2525
| --- | --- | --- |
@@ -231,23 +231,23 @@ No package for your target? The supplied scripts build DEB or RPM packages with
231231
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:
232232

233233
```bash
234-
git clone --depth 1 --branch v1.0-1 https://github.com/documentdb/documentdb.git
234+
git clone --depth 1 --branch v1.0-0 https://github.com/documentdb/documentdb.git
235235
cd documentdb
236-
./packaging/build_packages.sh --os deb12 --pg 18 --version 1.0.1 --output-dir packages
236+
./packaging/build_packages.sh --os deb12 --pg 18 --version 1.0.0 --output-dir packages
237237
```
238238

239-
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.
240240

241241
For the full stand-alone DEB set, make `dpkg-deb` available on the build host, then build the gateway and shared packages:
242242

243243
```bash
244244
./packaging/gateway/build_gateway_packages.sh --os deb12 --pg 18 \
245-
--version 1.0.1 --output-dir packages
245+
--version 1.0.0 --output-dir packages
246246
./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
248248
```
249249

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.
251251

252252
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.
253253

@@ -256,7 +256,7 @@ Validate builds for targets outside the first-party CI matrix in your environmen
256256
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`.
257257

258258
```bash
259-
gh release download v1.0-1 -R documentdb/documentdb -D pkgs && cd pkgs && sha256sum -c SHA256SUMS
259+
gh release download v1.0-0 -R documentdb/documentdb -D pkgs && cd pkgs && sha256sum -c SHA256SUMS
260260
```
261261

262262
This downloads all formats, architectures, and PostgreSQL major versions. Install only the matching subset below, not every downloaded file.
@@ -272,38 +272,38 @@ These examples install `documentdb-18` and its dependencies; the optional `docum
272272
For arm64, replace `amd64` with `arm64`. Only the gateway and extension files are architecture-specific.
273273

274274
```bash
275-
sudo apt install ./ubuntu24.04-documentdb-18_1.0.1_all.deb \
276-
./ubuntu24.04-documentdb-common_1.0.1_all.deb \
277-
./ubuntu24.04-documentdb-postgresql-tools_1.0.1_all.deb \
278-
./ubuntu24.04-documentdb-gateway_1.0.1_amd64.deb \
279-
./ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb
275+
sudo apt install ./ubuntu24.04-documentdb-18_1.0.0_all.deb \
276+
./ubuntu24.04-documentdb-common_1.0.0_all.deb \
277+
./ubuntu24.04-documentdb-postgresql-tools_1.0.0_all.deb \
278+
./ubuntu24.04-documentdb-gateway_1.0.0_amd64.deb \
279+
./ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb
280280
```
281281

282282
### RPM (RHEL-compatible 9, PostgreSQL 18, x86_64)
283283

284284
For arm64, replace `x86_64` with `aarch64`; leave `noarch` files unchanged.
285285

286286
```bash
287-
sudo dnf install ./documentdb-18-1.0.1-1.noarch.rpm \
288-
./documentdb-common-1.0.1-1.noarch.rpm \
289-
./documentdb-postgresql-tools-1.0.1-1.noarch.rpm \
290-
./documentdb-gateway-1.0.1-1.el9.x86_64.rpm \
291-
./rhel9-postgresql18-documentdb-1.0.1-1.el9.x86_64.rpm
287+
sudo dnf install ./documentdb-18-1.0.0-1.noarch.rpm \
288+
./documentdb-common-1.0.0-1.noarch.rpm \
289+
./documentdb-postgresql-tools-1.0.0-1.noarch.rpm \
290+
./documentdb-gateway-1.0.0-1.el9.x86_64.rpm \
291+
./rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm
292292
```
293293

294294
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.
295295

296296
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.
297297

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`.
299299

300300
### Offline / air-gapped
301301

302302
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.
303303

304304
## Upgrading to 1.0
305305

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.116 or 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.
307307

308308
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.
309309

@@ -371,11 +371,11 @@ Connect with `mongosh` and run:
371371
db.hello().internal.documentdb_versions
372372
```
373373

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/).
375375

376376
### Containers
377377

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).
379379

380380
## Retired targets
381381

0 commit comments

Comments
 (0)