Skip to content

Commit 1eeab98

Browse files
Morl99jschirrmacher
authored andcommitted
Add version as label to Docker and adapt readme for new tags
1 parent 0cd0769 commit 1eeab98

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ ARG POSTGRESQL_VERSION="13"
22
FROM bitnami/postgresql:$POSTGRESQL_VERSION
33
LABEL org.opencontainers.image.source="https://github.com/dbsystel/postgresql-partman-container"
44
ARG PARTMAN_VERSION="v4.7.4"
5+
LABEL de.dbsystel.partman-version=$PARTMAN_VERSION
6+
ARG POSTGRESQL_VERSION
7+
LABEL de.dbsystel.postgres-version=$POSTGRESQL_VERSION
58
ARG PARTMAN_CHECKSUM="28e4fdb83ecc16525959ae9593bfbfd077db429285f5f7d8e2468bfff6cbdbf2c81ace79a9ddeb4f00f51eb709163dbd713fe6b221a432ac2ff766f98d4cf8e4"
69
USER root
710
RUN install_packages wget gcc make build-essential

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
This repo is meant to provide a Docker container that is based on the popular [bitnami/postgresql](https://hub.docker.com/r/bitnami/postgresql) container, that comes preinstalled with the [pg_partman](https://github.com/pgpartman/pg_partman) postgresql extension.
44

5-
It pushes a nightly latest image to ghcr.io
5+
It pushes a nightly latest image of all tag versions to [ghcr.io](https://github.com/orgs/dbsystel/packages/container/package/postgresql-partman)
66

77
## Usage
88

9+
```shell
10+
docker run ghcr.io/dbsystel/postgresql-partman
11+
docker run ghcr.io/dbsystel/postgresql-partman:{13,14,15,16}
12+
docker run ghcr.io/dbsystel/postgresql-partman:{13-4,14-4,15-4,16-4}
13+
docker run ghcr.io/dbsystel/postgresql-partman:{14-5,15-5,16-5}
914
```
10-
docker run ghcr.io/dbsystel/postgresql-partman:13
11-
docker run ghcr.io/dbsystel/postgresql-partman:14
12-
docker run ghcr.io/dbsystel/postgresql-partman:15
13-
docker run ghcr.io/dbsystel/postgresql-partman:16
14-
```
1515

16-
The tags represent the postgresql major version. They will contain the latest available pg_partman version that was available at build time.
16+
The first part of the tag represent the postgresql major version, the second part represents the partman major version. If you leave out the second part, you will get the default version of partman as specified by this repository. Be aware, that this can change without notice.
17+
18+
You can find out the actual versions used by looking at the labels of an image.
19+
20+
`docker inspect ghcr.io/dbsystel/postgresql-partman:13`
21+
22+
````
23+
"de.dbsystel.partman-version" : "v4.7.4",
24+
"de.dbsystel.postgres-version" : "13",
25+
````
1726

1827
## License
1928

0 commit comments

Comments
 (0)