Skip to content

Commit c66dca1

Browse files
authored
Merge pull request #72 from cybertec-postgresql/prepareGHCR
Add Labels to dockerfiles for ghcr
2 parents dd5a5bd + d4ec3f3 commit c66dca1

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ scripts/logical_backup/
2121

2222
# grid-files
2323
/docker/add-grid-files/grid-files/*
24+
25+
# Public-betas
26+
docker/pg-public-beta
27+
docker/pgbackrest-public-beta

docker/exporter/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ ENV PATH=$PATH:/usr/local/go/bin
2121
RUN git clone https://github.com/prometheus-community/postgres_exporter.git && cd postgres_exporter && make build;
2222

2323
FROM ${CONTAINERIMAGE}
24+
25+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
26+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - Metric-Exporter for Prometheus"
27+
LABEL org.opencontainers.image.licenses=Apache-2.0
28+
2429
COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init
2530
COPY --from=builder ./postgres_exporter/postgres_exporter /bin/postgres_exporter
2631

docker/pg-public-beta/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ FROM scratch
118118

119119
ARG PGVERSION
120120

121+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
122+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - HA-Postgres-Container with Patroni and pgBackRest (public-beta)"
123+
LABEL org.opencontainers.image.licenses=Apache-2.0
121124
COPY --from=builder / /
122125

123126
EXPOSE 5432 8008 8080

docker/pgbackrest-public-beta/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ RUN mkdir -p /tmp/zstd && cp -r /usr/bin/zstd* /tmp/zstd
5252

5353
FROM ${CONTAINERIMAGE} as micro
5454

55+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
56+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - pgBackRest-Container for restore-Container and as Repo-Host (public-beta)"
57+
LABEL org.opencontainers.image.licenses=Apache-2.0
58+
5559
ARG PGVERSION
5660

5761
COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init

docker/pgbackrest/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ COPY --from=micro / /
131131

132132
ARG PGVERSION
133133

134+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
135+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - pgBackRest-Container for restore-Container and as Repo-Host"
136+
LABEL org.opencontainers.image.licenses=Apache-2.0
137+
134138
# set user and group ownership
135139
RUN chown -R postgres:postgres /opt/pgbackrest \
136140
/backrestrepo /home/postgres/pgdata/pgbackrest /home/postgres/pgdata

docker/pgbouncer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ RUN mkdir -p /etc/pgbouncer/certs && chmod 775 /etc/pgbouncer/certs && chmod 664
2222

2323
FROM scratch
2424

25+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
26+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - pgBouncer"
27+
LABEL org.opencontainers.image.licenses=Apache-2.0
28+
2529
COPY --from=builder / /
2630

2731
COPY launcher/pgbouncer/launch.sh /

docker/postgres-gis/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ FROM scratch
128128

129129
ARG PGVERSION
130130

131+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
132+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - HA-Postgres-Container with Postgis, Patroni and pgBackRest"
133+
LABEL org.opencontainers.image.licenses=Apache-2.0
134+
131135
COPY --from=builder / /
132136

133137
EXPOSE 5432 8008 8080

docker/postgres/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ FROM scratch
125125

126126
ARG PGVERSION
127127

128+
LABEL org.opencontainers.image.source=https://github.com/cybertec-postgresql/CYBERTEC-pg-container
129+
LABEL org.opencontainers.image.description="CYBERTEC-PG-Container - HA-Postgres-Container with Patroni and pgBackRest"
130+
LABEL org.opencontainers.image.licenses=Apache-2.0
131+
128132
COPY --from=builder / /
129133

130134
EXPOSE 5432 8008 8080

0 commit comments

Comments
 (0)