Skip to content

Commit 796c447

Browse files
authored
Merge branch 'main' into main
2 parents 7b330ce + 625cb95 commit 796c447

File tree

7 files changed

+468
-0
lines changed

7 files changed

+468
-0
lines changed
Lines changed: 223 additions & 0 deletions
Loading

content/authors/dchambre/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Daniel Chambre
3+
avatar: daniel.jpg
4+
github: smiyc
5+
---
6+
7+
A DBA and Open Source enthusiast.
297 KB
Loading
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
platforms = [
2+
"linux/amd64",
3+
]
4+
5+
extensions = [
6+
"dbgsym",
7+
"partman",
8+
"oracle-fdw",
9+
"squeeze",
10+
"show-plans",
11+
"cron",
12+
"tds-fdw",
13+
]
14+
15+
target "myimage" {
16+
dockerfile-inline = <<EOT
17+
ARG BASE_IMAGE="ghcr.io/cloudnative-pg/postgresql:16.9-standard-bookworm"
18+
FROM $BASE_IMAGE AS myimage
19+
ARG EXTENSIONS
20+
USER root
21+
RUN apt-get update && \
22+
apt-get install -y --no-install-recommends $EXTENSIONS \
23+
ldap-utils \
24+
ca-certificates \
25+
openssl \
26+
procps \
27+
postgresql-plpython3-"${getMajor(pgVersion)}" \
28+
python3-psutil \
29+
pgtop \
30+
pg-activity \
31+
nmon \
32+
libsybdb5 \
33+
freetds-dev \
34+
freetds-common && \
35+
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
36+
rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/*
37+
RUN sed -i -e 's/# de_AT.UTF-8 UTF-8/de_AT.UTF-8 UTF-8/' /etc/locale.gen && \
38+
locale-gen
39+
ADD https://your.git.url/postgresql/-/blob/main/.psqlrc?ref_type=heads /var/lib/postgresql/
40+
ADD https://your.git.url/cloudnativepg/-/blob/main/bake/files/etc/ldap/ldap.conf?ref_type=heads /etc/ldap/
41+
ADD https://your.git.url/cloudnativepg/-/blob/main/bake/files/usr/local/share/ca-certificates/EuropeanSSLServerCA2.crt?ref_type=heads /usr/local/share/ca-certificates/
42+
ADD https://your.git.url/cloudnativepg/-/blob/main/bake/files/usr/local/share/ca-certificates/RootCA1v0.crt?ref_type=heads /usr/local/share/ca-certificates/
43+
ADD https://your.git.url/cloudnativepg/-/blob/main/bake/files/usr/local/share/ca-certificates/SubCA1v1.crt?ref_type=heads /usr/local/share/ca-certificates/
44+
RUN update-ca-certificates
45+
USER 26
46+
EOT
47+
matrix = {
48+
tgt = [
49+
"myimage"
50+
]
51+
pgVersion = [
52+
"13.21",
53+
"14.18",
54+
"15.13",
55+
"16.9",
56+
"17.5",
57+
]
58+
}
59+
name = "postgresql-${index(split(".",cleanVersion(pgVersion)),0)}-standard-bookworm"
60+
target = "${tgt}"
61+
args = {
62+
BASE_IMAGE = "ghcr.io/cloudnative-pg/postgresql:${cleanVersion(pgVersion)}-standard-bookworm",
63+
EXTENSIONS = "${getExtensionsString(pgVersion, extensions)}",
64+
}
65+
}
435 KB
Loading

0 commit comments

Comments
 (0)