Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: review tests and docs
Enforce the given EXT_VERSION when building the image.
Fix the license directory.
Update documentation and smoke tests.

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
  • Loading branch information
NiccoloFei committed Apr 23, 2026
commit 96ed3b864fcd73fdaa8de2aef6e100b1b69dd062
16 changes: 6 additions & 10 deletions timescaledb-oss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@ ARG PG_MAJOR
ARG EXT_VERSION

USER 0
RUN set -eux; \
apt-get update; \
RUN apt-get update && \
apt-get install -y --no-install-recommends \
postgresql-${PG_MAJOR}-timescaledb=${EXT_VERSION}*
######################################################################
# Final SCRATCH image
######################################################################
"postgresql-${PG_MAJOR}-timescaledb=${EXT_VERSION}"

FROM scratch
ARG PG_MAJOR

# Licenses
COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-timescaledb/copyright /licenses/timescaledb/
COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-timescaledb/copyright /licenses/postgresql-${PG_MAJOR}-timescaledb/

# Libraries — .so and bitcode for TimescaleDB
# Libraries
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/timescaledb* /lib/
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/timescaledb-2* /lib/

# Extension SQL + control files
# Share
COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/extension/timescaledb* /share/extension/

USER 65532:65532
10 changes: 7 additions & 3 deletions timescaledb-oss/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# TimescaleDB (Apache 2.0 Edition)
# `TimescaleDB` (Apache 2.0 Edition)
<!--
SPDX-FileCopyrightText: Copyright © contributors to CloudNativePG, established as CloudNativePG a Series of LF Projects, LLC.
SPDX-License-Identifier: Apache-2.0
-->

[TimescaleDB](https://github.com/timescale/timescaledb) is an open-source
time-series database built on PostgreSQL. It enables fast analytics, efficient
Expand Down Expand Up @@ -42,7 +46,7 @@ spec:
extensions:
- name: timescaledb
image:
reference: ghcr.io/cloudnative-pg/timescaledb-oss:2.24.0-18-trixie
reference: ghcr.io/cloudnative-pg/timescaledb-oss:2.25.1-18-trixie
```

### 2. Enable the extension in a database
Expand All @@ -62,7 +66,7 @@ spec:
name: cluster-timescaledb
extensions:
- name: timescaledb
version: '2.24.0'
version: '2.25.1'
```

### 3. Verify installation
Expand Down
1 change: 1 addition & 0 deletions timescaledb-oss/metadata.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata = {
auto_update_os_libs = false
required_extensions = []
create_extension = true

versions = {
trixie = {
// renovate: suite=trixie-pgdg depName=postgresql-18-timescaledb
Expand Down
2 changes: 2 additions & 0 deletions timescaledb-oss/test/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ spec:
size: 1Gi

postgresql:
parameters:
timescaledb.telemetry_level: 'off'
shared_preload_libraries: ($values.shared_preload_libraries)
extensions: ($values.extensions)
7 changes: 1 addition & 6 deletions timescaledb-oss/test/database-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@ apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: (join('-', [$values.name, 'app']))
status:
applied: true
extensions:
- applied: true
name: ($values.sql_name)
observedGeneration: 1
status: ($values.database_assert_status)
4 changes: 1 addition & 3 deletions timescaledb-oss/test/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ spec:
owner: app
cluster:
name: ($values.name)
extensions:
- name: ($values.sql_name)
version: ($values.version)
extensions: ($values.database_config.extensions_spec)