timescale / timescaledb-docker

Release Docker builds of TimescaleDB
Apache License 2.0
290 stars 128 forks source link

Fix first bitnami build for new PG version #208

Closed jnidzwetzki closed 1 year ago

jnidzwetzki commented 1 year ago

Perform a workaround for failing docker COPY commands when no input files are specified.

When the first image for a PG version is created, PREV_IMAGE is set to the Bitnami upstream image. Therefore, no TimescaleDB files exist and the copy commands do fail. After applying this patch, the Bitnami image for PG 15 can be created. The image building and the image are tested locally.

Password for user postgres: 
psql (15.2)
Type "help" for help.

postgres=# \dx
                                      List of installed extensions
    Name     | Version |   Schema   |                            Description                            
-------------+---------+------------+-------------------------------------------------------------------
 plpgsql     | 1.0     | pg_catalog | PL/pgSQL procedural language
 timescaledb | 2.10.0  | public     | Enables scalable inserts and complex queries for time-series data
(2 rows)