Skip to content

Commit 92bb8f9

Browse files
committed
fix: use debian-based PostgreSQL images instead of Alpine
musl libc's reduced feature-set causes unexpected issues with ordering existing workarounds seem to surface more unexpected issues as well let's go for the easy solution first
1 parent 8f34749 commit 92bb8f9

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

backend/app/src/main/kotlin/io/tolgee/postgresRunners/PostgresDockerRunner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PostgresDockerRunner(
1414
override fun run() {
1515
instance =
1616
DockerContainerRunner(
17-
image = "postgres:16.8-alpine3.21",
17+
image = "postgres:16.8",
1818
expose = mapOf(postgresAutostartProperties.port to "5432"),
1919
waitForLog = "database system is ready to accept connections",
2020
waitForLogTimesForNewContainer = 2,

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ project(':server-app').afterEvaluate {
9090
task startDbChangelogContainer {
9191
doLast {
9292
exec {
93-
commandLine "docker", "run", "-e", "POSTGRES_PASSWORD=postgres", "-d", "-p55538:5432", "--name", dbSchemaContainerName, "postgres:16.8-alpine3.21"
93+
commandLine "docker", "run",
94+
"-e", "POSTGRES_PASSWORD=postgres",
95+
"-d",
96+
"-p55538:5432",
97+
"--name", dbSchemaContainerName,
98+
"postgres:16.8"
9499
}
95100
Thread.sleep(5000)
96101
}

docker/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:16.8-alpine3.21
1+
FROM postgres:16.8
22

33
ENTRYPOINT []
44

docker/docker-compose.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: postgres:16.8-alpine3.21
3+
image: postgres:16.8
44
environment:
55
- POSTGRES_PASSWORD=postgres
66
app:

docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: postgres:16.8-alpine3.21
3+
image: postgres:16.8
44
volumes:
55
- ../build/db-data:/var/lib/postgresql/data/
66
environment:
@@ -14,4 +14,4 @@ services:
1414
depends_on:
1515
- "db"
1616
smtp:
17-
image: namshi/smtp
17+
image: namshi/smtp

0 commit comments

Comments
 (0)