Skip to content

Commit 6babcaf

Browse files
committed
3.3.0pre
1 parent a1468d8 commit 6babcaf

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## 18-3.3.0pre 2025-10-06 <code at nfrastack dot com>
22

33
### Added
4-
- Postgres 18.0
4+
- Postgres 18.1
55
- Switch base image to nfrastack/base
66
- Alpine 3.22
77
- Clang 20
88
- LLVM 20
9-
- Zabbix Postgres plugin 7.4.3
9+
- Zabbix Postgres plugin 7.4.5
1010

1111
## 17-3.2.99 2025-10-06 <dave at tiredofit dot ca>
1212

Containerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ LABEL \
1818
org.opencontainers.image.licenses="MIT"
1919

2020
ARG \
21-
POSTGRES_VERSION="18.0" \
21+
POSTGRES_VERSION="REL_18_1" \
22+
POSTGRES_REPO_URL="https://github.com/postgres/postgres" \
2223
POSTGRES_ZABBIX_PLUGIN_VERSION
2324

2425
COPY CHANGELOG.md /usr/src/container/CHANGELOG.md
@@ -103,9 +104,7 @@ RUN echo "" && \
103104
cp zabbix-agent2-plugin-postgresql /var/lib/zabbix/plugins ; \
104105
container_build_log add "Postgres Zabbix Plugin" "${POSTGRES_ZABBIX_PLUGIN_VERSION}" "zabbix.com" ; \
105106
fi ; \
106-
mkdir -p /usr/src/postgres && \
107-
curl -sSL https://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.bz2 | tar xvfj - --strip 1 -C /usr/src/postgres && \
108-
cd /usr/src/postgres && \
107+
clone_git_repo "${POSTGRES_REPO_URL}" "${POSTGRES_VERSION}" && \
109108
awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new && \
110109
grep '/var/run/postgresql' src/include/pg_config_manual.h.new && \
111110
mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h && \
@@ -143,7 +142,7 @@ RUN echo "" && \
143142
make -j "$(nproc)" -C contrib && \
144143
make -C contrib/ install && \
145144
package install SCANNED_RUNTIME_DEPS && \
146-
container_build_log add "Postgresql" "${POSTGRES_VERSION}" "postgresql.org" && \
145+
container_build_log add "Postgresql" "$(echo ${POSTGRES_VERSION#REL_} | tr '_' '.')" "${POSTGRES_REPO_URL}" && \
147146
rm -rf \
148147
/usr/local/share/doc \
149148
/usr/local/share/man \

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,20 @@ Automatically create user databases on startup. This can be done on each contain
176176

177177
Create multiple databases and different usernames and passwords to access. You can share usernames and passwords for multiple databases by using the same user and password in each entry.
178178

179-
| Parameter | Description | Default | `_FILE` |
180-
| ---------------- | -------------------------------------------------- | ------- | ------- |
181-
| `DB01_NAME` | First Database Name e.g. `database1` | | x |
182-
| `DB01_USER` | First Database User e.g. `user1` | | x |
183-
| `DB01_PASS` | First Database Pass e.g. `password1` | | x |
184-
| `DB01_EXTENSION` | (optional) Database Extension e.g. `unaccent` | | x |
185-
| `DB02_NAME` | Second Database Name e.g. `database1` | | x |
186-
| `DB02_USER` | Second Database User e.g. `user2` | | x |
187-
| `DB02_PASS` | Second Database Pass e.g. `password2` | | x |
188-
| `DB02_EXTENSION` | (optional) Database Extension e.g. `unaccent` | | |
189-
| `DBXX_...` | As above, should be able to go all the way to `99` | | |
179+
| Parameter | Description | Default | `_FILE` | Advanced |
180+
| ---------------- | -------------------------------------------------- | ------- | ------- | -------- |
181+
| `DB01_NAME` | First Database Name e.g. `database1` | | x | |
182+
| `DB01_USER` | First Database User e.g. `user1` | | x | |
183+
| `DB01_PASS` | First Database Pass e.g. `password1` | | x | |
184+
| `DB01_EXTENSION` | (optional) Database Extension e.g. `unaccent` | | x | |
185+
| `DB02_NAME` | Second Database Name e.g. `database1` | | x | |
186+
| `DB02_USER` | Second Database User e.g. `user2` | | x | |
187+
| `DB02_PASS` | Second Database Pass e.g. `password2` | | x | |
188+
| `DB02_EXTENSION` | (optional) Database Extension e.g. `unaccent` | | | |
189+
| `DBXX_...` | As above, should be able to go all the way to `99` | | | x |
190+
191+
Advanced mode allows you to maange more than 3 databases.
192+
190193

191194
#### Replication Options
192195

0 commit comments

Comments
 (0)