Wykres commitów

366 Commity (develop)

Autor SHA1 Wiadomość Data
Gavin Fleming 210e43d31b
Merge pull request #498 from kartoza/gubuntu-patch-1
Create FUNDING.yml
2025-03-26 15:51:14 +02:00
Gavin Fleming b0c24b88f2
Create FUNDING.yml 2025-03-26 15:50:08 +02:00
mazano 2d2552114a
Fix DB name with hyphen and also add env for logging (#495)
* Fix DB name with hyphen and also add env for logging and test creating database with hyphen

---------

Co-authored-by: Admire Nyakudya <mazano@MacBookAir.Dlink>
2024-12-17 21:25:01 +02:00
Sylvain 711b96844c
Add plperl plperlu extensions (#493) 2024-12-17 07:23:21 +02:00
FunkyPants 1464732b77
add log (#492)
|       env              | image_env               | default_value          |
|---------------------|----------------------|-------------|
| logging_collector   | LOGGING_COLLECTOR    | off         |
| log_directory       | LOG_DIRECTORY        | pg_log      |
| log_filename        | LOG_FILENAME         | xxx         |
| log_rotation_age    | LOG_ROTATION_AGE     | 1d          |
| log_rotation_size   | LOG_ROTATION_SIZE    | 100MB       |
| log_truncate_on_rotation | LOG_TRUNCATE_ON_ROTATION | on         |
| log_lock_waits      | LOG_LOCK_WAITS       | on          |
| log_duration        | LOG_DURATION         | on          |
| log_statement       | LOG_STATEMENT        | all         |
| log_min_duration_statement | LOG_MIN_DURATION_STATEMENT | 20        |
| log_connections     | LOG_CONNECTIONS      | on          |
| log_disconnections  | LOG_DISCONNECTS      | on          |
| log_line_prefix     | LOG_LINE_PREFIX      | xx          |
| log_timezone        | LOG_TIMEZONE         | Etc/UTC     |
2024-12-14 11:39:23 +02:00
dependabot[bot] 3c742c8a84
Bump actions/checkout from 3 to 4 (#490)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-21 21:28:17 +02:00
mazano 1902e16c40
[skip-release] Fix tagging images (#488)
* Fix tagging images

* Try to only publish one version per series

---------

Co-authored-by: Admire Nyakudya <mazano@MacBookAir.Dlink>
2024-10-21 21:25:49 +02:00
mazano 16cc6a9924
Update deploy-image.yaml timeout 2024-10-20 04:51:49 +02:00
mazano cbccac5b69
Fix cache validation (#487)
Co-authored-by: Admire Nyakudya <mazano@MacBookAir.Dlink>
2024-10-19 23:12:52 +02:00
mazano 63664223c9
try building image directly (#486)
Co-authored-by: Admire Nyakudya <mazano@MacBookAir.Dlink>
2024-10-19 22:27:44 +02:00
mazano 885e33347f
Increase timeout in deploy.yml 2024-10-19 17:42:51 +02:00
mazano da42b90334
Upgrade to PG17 (#485)
* Upgrade to PG17



---------

Co-authored-by: Admire Nyakudya <mazano@MacBookAir.Dlink>
2024-10-19 14:01:20 +02:00
mazano 6e8d6e5352
fix action env (#481)
Co-authored-by: Admire Nyakudya <mazano@spatialbyte.Dlink>
2024-08-15 21:24:20 +02:00
Vincent Delbar a4f9aa8e64
Update env-data.sh (#480)
Fixes #479
2024-08-14 00:51:25 +02:00
dependabot[bot] 7d7c5946db
Bump docker/build-push-action from 5 to 6 (#476)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mazano <addloe@gmail.com>
2024-07-01 21:22:33 +02:00
Adrien Kunysz 02446ec80f
Improve documentation of startup behaviour. (#477)
As per https://github.com/kartoza/docker-postgis/issues/475 when populating the databse via docker-entrypoint-initdb.d there is a theoretical race condition where pg_isready claims the database is ready while the scripts have not finished running yet. This race condition does not actually exist because at that stage the database only listens on Unix socket and 127.0.0.1. After the script execution completes, it is restarted and made to listen on 0.0.0.0 and ::.

This change documents this behaviour so that users can rely on it.

Example log:
```
└→> $ docker logs [container]
Add rule to pg_hba: 0.0.0.0/0
Add rule to pg_hba: replication replicator 
Setup master database
Creating /opt/archivedir directory
2024-06-20 13:01:14.224 UTC [57] LOG:  starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2024-06-20 13:01:14.225 UTC [57] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2024-06-20 13:01:14.233 UTC [57] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-06-20 13:01:14.251 UTC [61] LOG:  database system was shut down at 2020-11-14 12:13:00 UTC
2024-06-20 13:01:14.268 UTC [57] LOG:  database system is ready to accept connections
2024-06-20 13:01:14.272 UTC [67] FATAL:  database "[name]" does not exist
2024-06-20 13:01:14.285 UTC [57] LOG:  background worker "pg_cron launcher" (PID 67) exited with exit code 1
/var/run/postgresql:5432 - accepting connections
postgres ready
Setup postgres User:Password
Creating superuser [user]
CREATE ROLE
Creating replication user replicator
CREATE ROLE
Create db [database]
Enabling postgis in the database [database]
2024-06-20 13:01:15.288 UTC [170] LOG:  pg_cron scheduler started
CREATE EXTENSION
Enabling hstore in the database [database]
CREATE EXTENSION
Enabling postgis_topology in the database [database]
CREATE EXTENSION
Enabling postgis_raster in the database [database]
CREATE EXTENSION
Enabling pgrouting in the database [database]
CREATE EXTENSION
Loading legacy sql
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE OPERATOR CLASS
ALTER DEFAULT PRIVILEGES
CREATE EXTENSION
[...]
2024-06-20 13:01:17.282 UTC [57] LOG:  received smart shutdown request
/var/run/postgresql/13-main.pid
2024-06-20 13:01:17.284 UTC [170] LOG:  pg_cron scheduler shutting down
2024-06-20 13:01:17.286 UTC [57] LOG:  background worker "logical replication launcher" (PID 68) exited with exit code 1
2024-06-20 13:01:17.288 UTC [62] LOG:  shutting down
2024-06-20 13:01:17.351 UTC [57] LOG:  database system is shut down
Postgres initialisation process completed .... restarting in foreground
2024-06-20 13:01:18.346 UTC [303] LOG:  starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2024-06-20 13:01:18.346 UTC [303] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-06-20 13:01:18.347 UTC [303] LOG:  listening on IPv6 address "::", port 5432
2024-06-20 13:01:18.351 UTC [303] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-06-20 13:01:18.357 UTC [305] LOG:  database system was shut down at 2024-06-20 13:01:17 UTC
2024-06-20 13:01:18.365 UTC [303] LOG:  database system is ready to accept connections
2024-06-20 13:01:18.373 UTC [311] LOG:  pg_cron scheduler started
```
2024-06-25 23:49:24 +02:00
mazano a55e6ca0fa
upload results (#473)
Co-authored-by: spatialgeobyte <158478685+spatialgeobyte@users.noreply.github.com>
2024-05-25 10:25:06 +02:00
mazano 98e2513bff
Add scanning option (#472)
* Add a scanning option for vulnerabilities



---------

Co-authored-by: spatialgeobyte <158478685+spatialgeobyte@users.noreply.github.com>
2024-05-24 09:57:43 +02:00
mazano 0772eb3100
fix timescale build args (#470)
* fix timescale build args

* fix #463

* fix https://github.com/kartoza/docker-postgis/issues/462#issuecomment-1980535546

* DRY functions

---------

Co-authored-by: spatialgeobyte <158478685+spatialgeobyte@users.noreply.github.com>
2024-03-17 20:07:08 +02:00
dependabot[bot] 75717923a2
Bump docker/setup-qemu-action from 2 to 3 (#461) 2023-11-04 22:32:06 +02:00
mazano 249de77ce6
Add option to run python scripts in entrypoint (#459)
* add option to also run python scripts
2023-10-23 17:27:18 +02:00
mazano 8d5482c134
do not specify architectures in Dockerfile (#458) 2023-10-10 22:53:00 +02:00
mazano 071db69312
upgrade to v16 (#457)
* upgrade to v16
2023-10-08 17:31:55 +02:00
mazano c4fa12fd1b
workflows update (#456)
* workflows update

* workflows updates
2023-10-08 14:32:53 +02:00
dependabot[bot] b1a32de5e2
Bump docker/build-push-action from 4 to 5 (#451)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 19:05:21 +02:00
dependabot[bot] b767f45922
Bump actions/checkout from 3 to 4 (#452)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 18:47:14 +02:00
dependabot[bot] 158b792eb4
Bump docker/metadata-action from 4 to 5 (#450)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 18:33:52 +02:00
dependabot[bot] 23c9e92781
Bump docker/setup-buildx-action from 2 to 3 (#449)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mazano <addloe@gmail.com>
2023-10-06 18:22:31 +02:00
dependabot[bot] 6a90895ed2
Bump docker/login-action from 2 to 3 (#448)
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-06 18:06:49 +02:00
mazano 4893773bdc
fix variable mismatch in workflows (#455)
* fix variable mismatch in workflows
2023-10-06 17:03:28 +02:00
jyrkka 1468f485e0
Fix issue with multiple schema creation and modify existing tests (#454) 2023-10-02 13:20:27 +02:00
mazano 98f3c97e7d
upgrade to pg16 (#447)
* upgrade to pg16
2023-09-26 15:07:46 +02:00
mazano c816d5e72e
fix #439 (#445)
* fix #439

* add promote class
2023-09-04 21:56:45 +02:00
mazano 74bb497307
fix issue with multiple db creation and add test for this (#443)
* fix issue with multiple db creation and add test for this
2023-08-31 17:37:28 +02:00
mazano 80b4b715b6
add option to deactivate cron installation, run bash script through s… (#442)
* add option to deactivate cron installation, run bash script through shellcheck

* remove cron setting in compose
2023-08-20 23:27:11 +02:00
mazano d00a5f6bce
upgrade to 15-3.4 (#441) 2023-08-19 20:22:21 +02:00
Tenz 56643f4d05
Feature/extension h3 (#428)
* Adding h3 library installs to enable h3, h3_postgis extensions

* enable h3 extensions by default if env var POSTGRES_MULTIPLE_EXTENSIONS is not set

* Fix build since we migrated to new base image

* do not activate h3 by default for backward compatibility

* upgrade workflows to use bookworm

* fix pip install

---------

Co-authored-by: Martino <martino.boni@generali.com>
Co-authored-by: mazano <addloe@gmail.com>
2023-08-06 05:02:07 +02:00
mazano e808ce66bb
upgrade base image (#436) 2023-07-29 15:07:11 +02:00
Matt Forrest 4175036222
Update docker-compose.yml with port 25432 (#437) 2023-07-11 08:33:14 +02:00
Adrien Pompée 3316cfc0de
Better handling of signals from docker kill by launching postgres as PID 1. (#435)
Co-authored-by: Adrien Pompée <adrien.pompee@atmosphere.aero>
2023-07-07 13:00:34 +02:00
mazano 863494e5af
fix #426 (#430)
* fix #426

* fix logic to get versions
2023-07-01 09:47:21 +02:00
dependabot[bot] fd0f76c291
Bump docker/build-push-action from 3 to 4 (#433)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mazano <addloe@gmail.com>
2023-07-01 07:35:46 +02:00
dependabot[bot] 31a4cd41e1
Bump docker/metadata-action from 3 to 4 (#432)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3 to 4.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-01 06:26:28 +02:00
mazano 1c841a34e5
add dependabot (#431) 2023-06-20 22:20:04 +02:00
mazano dec5cd55f0
fix changing file permisions on restart (#422) 2023-04-22 06:34:37 +02:00
mazano 212558072f
skip changing ownership of secrets folder (#421) 2023-04-15 08:01:16 +02:00
mazano b70664d906
fix issue with host mounts (#419)
* fix issue with host mounts and add tests
2023-03-30 07:08:30 +02:00
mazano 6eb1043519
fixes #416 (#417) 2023-03-25 11:13:07 +02:00
mazano 9f8f979b6e
run container as none root (#403)
* add option to run as none root and update tests
2023-02-01 06:42:32 +02:00
mazano 63b52ffd9b
add issue templates (#410) 2023-01-22 21:19:15 +02:00