Skip to content

Opensight-Postgres is utilized to provide our Opensight services with the appropriate PostgreSQL container versions.

License

Notifications You must be signed in to change notification settings

greenbone/opensight-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenbone Logo

OpenSight Postgres

GitHub releases

Opensight-Postgres is utilized to provide our Opensight services with the appropriate PostgreSQL container versions.

It is equivalent to the postgres Docker image. Additionally one previous major version of postgres is added to the image, so that it can be used to upgrade mounted database files to the current version.

Upgrade process

The opensight-postgres image can be used to upgrade older database versions to the current version used by this image.

If the database is already upgraded, this will be a no-op and the upgrade process will automatically terminate with exit code 0.

This does not happen automatically however, since it represents a backwards incompatible change, and has potential to fail. It is therefore recommended to create backups before attempting a migration.

Usage:

docker run \
    -it --rm \
    --user 999:999 \
    -v /path/to/database:/var/lib/postgres/data/ \
    opensight-postgres upgradeversion inplace

The inplace argument is required to perform the upgrade in the same mounted directory. This has the implication that the database will be corrupted if the upgrade fails. Therefore it is recommended to create a backup before attempting the upgrade.

Maintainer

This project is maintained by Greenbone AG.

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

Copyright (C) 2023-2024 Greenbone AG

Licensed under the GNU General Public License v3.0 or later.

About

Opensight-Postgres is utilized to provide our Opensight services with the appropriate PostgreSQL container versions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages