Skip to content

Commit 13faa6e

Browse files
committed
error out during build when DB_SSL=true, but point to solution
1 parent 707290a commit 13faa6e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ services:
3737
service:
3838
build:
3939
context: .
40+
args:
41+
DB_SSL: ${DB_SSL} # So that we can error out at build time if this is defined with a value of "true" (no longer supported from 2026.1).
4042
dockerfile: service.dockerfile
4143
depends_on:
4244
- secrets

service.dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(grep -oP 'VERSION_CODEN
1616
| gpg --dearmor > /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg
1717

1818

19+
ARG DB_SSL
20+
RUN [ "${DB_SSL}" = "true" ] && (echo 'You have "DB_SSL=true" defined (in your .env file, probably). This is no longer supported from Central 2026.1 onwards, but you can replace it with "PGSSLMODE=require". Please refer to the 2026.1.0 release notes for more information.'; exit 13)
1921

2022
FROM node:${node_version}-slim AS intermediate
2123
RUN apt-get update \

0 commit comments

Comments
 (0)