-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8SPG-711 Now it is possible to build set minor ver of PG like 16.4 (#…
…1118) * Now it is possibel to build set minor ver of PG like 16.4 * add README.md * move README.md * fix text * Fix wording --------- Co-authored-by: Dmitriy Kostiuk <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Building Images | ||
|
||
## Supported Percona Distribution for PostgreSQL Software | ||
|
||
You can find the latest supported PostgreSQL versions by the latest Operator using the following [link](https://docs.percona.com/percona-operator-for-postgresql/2.0/System-Requirements.html?h=#supported-versions). | ||
|
||
More information about Percona Distribution for PostgreSQL Software can be found using this [link](https://www.percona.com/postgresql/software/postgresql-distribution). | ||
|
||
## Requirements | ||
|
||
To build the images, you need to install the following software on your system: | ||
|
||
- **[Docker](https://www.docker.com/)**: A platform for developing, shipping, and running applications in containers. | ||
|
||
You will also need a repository to store the newly created Docker images, and the appropriate access rights to push images into it. In our examples, we will use Percona's experimental repository `perconalab/percona-postgresql-operator`. | ||
|
||
## Building PostgreSQL Image | ||
|
||
To build a PostgreSQL image, use the `--build-arg` option with `PG_MAJOR` set to a needed version number: | ||
|
||
* Use version with both major and minor numbers to specify the exact version - for example, `PG_MAJOR=16.6` will build a PosgreSQL image using Percona Distribution for PostgreSQL v16.6 | ||
* Use major number only to build the latest available minor version - for example, `PG_MAJOR=16` will bring you the latest available version of PostgreSQL 16 | ||
|
||
Example command: | ||
|
||
```bash | ||
docker build --platform x86_64 --no-cache --progress plain \ | ||
--build-arg PG_MAJOR=16.6 \ | ||
--build-arg PGO_TAG=v2.5.0 \ | ||
-t perconalab/percona-postgresql-operator:2.5.0-ppg16.6-postgres \ | ||
-f ./postgresql-containers/build/postgres/Dockerfile ./postgresql-containers/ | ||
``` | ||
|
||
## Building pgBouncer Image | ||
|
||
To build a pgBouncer image, use the `--build-arg` option with `PG_MAJOR` set to a needed version number: | ||
|
||
* Use version with both major and minor numbers to specify the exact version - for example, `PG_MAJOR=16.6` will build a pgBouncer image using Percona Distribution for PostgreSQL v16.6 | ||
* Use major number only to have the latest available minor version of pgBouncer - for example, `PG_MAJOR=16` will bring you the latest available version of pgBouncer for PostgreSQL 16 | ||
|
||
Example command: | ||
|
||
```bash | ||
docker build --platform x86_64 --no-cache --progress plain \ | ||
--build-arg PG_MAJOR=16.6 \ | ||
--build-arg PGO_TAG=v2.5.0 \ | ||
-t perconalab/percona-postgresql-operator:2.5.0-ppg16.6-pgbouncer1.23.1 \ | ||
-f ./postgresql-containers/build/pgbouncer/Dockerfile ./postgresql-containers/ | ||
``` | ||
|
||
## Building pgBackRest Image | ||
|
||
To build a pgBackRest image, use the `--build-arg` option with `PG_MAJOR` set to a needed version number: | ||
|
||
* Use version with both major and minor numbers to specify the exact version - for example, `PG_MAJOR=16.6` will build a pgBackRest image using Percona Distribution for PostgreSQL v16.6 | ||
* Use major number only to have the latest available minor version of pgBackRest - for example, `PG_MAJOR=16` will bring you the latest available version of pgBackRest for PostgreSQL 16 | ||
|
||
Example command: | ||
|
||
```bash | ||
docker build --platform x86_64 --no-cache --progress plain \ | ||
--build-arg PG_MAJOR=16.6 \ | ||
--build-arg PGO_TAG=v2.5.0 \ | ||
-t perconalab/percona-postgresql-operator:2.5.0-ppg16.6-pgbackrest2.54-1 \ | ||
-f ./postgresql-containers/build/pgbackrest/Dockerfile ./postgresql-containers/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters