Skip to content

Commit 91968c0

Browse files
committed
add postgres 16 support
1 parent 449ae5c commit 91968c0

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

.drone.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,27 @@ platform:
88
arch: arm64
99

1010
steps:
11-
- name: build
11+
- name: build-14
1212
image: ghcr.io/codestation/drone-kaniko
1313
settings:
1414
registry: registry.megpoid.dev
1515
repo: registry.megpoid.dev/codestation/postgres
1616
dockerfile: 14/Dockerfile
1717
tags:
1818
- 14
19+
username:
20+
from_secret: docker_username
21+
password:
22+
from_secret: docker_password
23+
24+
- name: build-16
25+
image: ghcr.io/codestation/drone-kaniko
26+
settings:
27+
registry: registry.megpoid.dev
28+
repo: registry.megpoid.dev/codestation/postgres
29+
dockerfile: 16/Dockerfile
30+
tags:
31+
- 16
1932
- latest
2033
username:
2134
from_secret: docker_username

14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM postgres:14-bookworm
33
LABEL maintainer="codestation <codestation@megpoid.dev>"
44

55
ARG BACKREST_VERSION=2.51
6-
ARG S6_OVERLAY_VERSION=3.1.5.0
6+
ARG S6_OVERLAY_VERSION=3.1.6.2
77

88
# Install pgbackrest
99
RUN set -ex; \

16/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM postgres:16-bookworm
2+
3+
LABEL maintainer="codestation <codestation@megpoid.dev>"
4+
5+
ARG BACKREST_VERSION=2.51
6+
ARG S6_OVERLAY_VERSION=3.1.6.2
7+
8+
# Install pgbackrest
9+
RUN set -ex; \
10+
apt-get update; \
11+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
12+
ca-certificates \
13+
curl \
14+
pgbackrest=${BACKREST_VERSION}-* \
15+
; \
16+
rm -rf /var/lib/apt/lists/*;
17+
18+
RUN set -ex; \
19+
curl -L https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -o /tmp/s6-overlay-noarch.tar.xz ; \
20+
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz ;\
21+
rm /tmp/s6-overlay-noarch.tar.xz ;\
22+
curl -L https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-$(arch).tar.xz -o /tmp/s6-overlay-$(arch).tar.xz ; \
23+
tar -C / -Jxpf /tmp/s6-overlay-$(arch).tar.xz ;\
24+
rm /tmp/s6-overlay-$(arch).tar.xz
25+
26+
COPY services/ /etc/s6-overlay/s6-rc.d/
27+
28+
ENTRYPOINT ["/init"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Postgres images
22

3-
Postgres 14 images with pgbackrest 2.43 installed.
3+
Postgres 14/16 images with pgbackrest 2.51 installed.

0 commit comments

Comments
 (0)