Skip to content

Commit 713ca79

Browse files
authored
[+] add custom TimescaleDB Dockerfile with plpython3u support (#1372)
Creates a new Dockerfile.timescaledb-plpython3u and updates compose.timescaledb.yml to build from it instead of using the pre-built timescale/timescaledb image
1 parent ac6917f commit 713ca79

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM timescale/timescaledb:latest-pg18
2+
3+
# Install plpython3u
4+
RUN set -ex && apk add ---virtual .plpython3-deps --no-cache py3-psutil --repository http://nl.alpinelinux.org/alpine/edge/testing postgresql-plpython3

docker/compose.timescaledb.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
services:
22
postgres:
33
user: postgres
4-
image: &pgimage timescale/timescaledb:latest-pg18
4+
build:
5+
context: .
6+
dockerfile: Dockerfile.timescaledb-plpython3u
7+
# image: &pgimage timescale/timescaledb:latest-pg18
58
container_name: postgres
69
command:
710
- "-cshared_preload_libraries=pg_stat_statements,timescaledb"
@@ -27,7 +30,10 @@ services:
2730

2831
postgres-standby:
2932
user: postgres
30-
image: *pgimage
33+
build:
34+
context: .
35+
dockerfile: Dockerfile.timescaledb-plpython3u
36+
# image: *pgimage
3137
container_name: postgres-standby
3238
environment:
3339
POSTGRES_PASSWORD: standbypass

0 commit comments

Comments
 (0)