Commit 05ab071
fix: Use sclorg postgres base image for scanner-db to fix timezone data
Problem: Scanner-DB pods were failing to start with error:
FATAL: configuration file "/etc/postgresql.conf" contains errors
LOG: invalid value for parameter "log_timezone": "UTC"
LOG: could not open directory "/usr/share/zoneinfo": No such file or directory
Root Cause: The ubi9-micro base image with manually installed PostgreSQL
was missing /usr/share/zoneinfo directory that PostgreSQL requires.
Solution: Switch Dockerfile and Dockerfile.slim to use quay.io/sclorg/postgresql-15-c9s
base image, matching the pattern from stackrox/stackrox commit c92e85134.
The sclorg image includes all required timezone data and dependencies.
Note: konflux.Dockerfile continues to use registry.redhat.io/rhel9/postgresql-15
which has its own timezone data handling.
This simplifies the regular Dockerfiles by:
- Eliminating multi-stage ubi9-micro builds
- Removing RPM downloads and GPG key handling (download.sh, PGDG-RPM-GPG-KEY-RHEL)
- Using existing postgres user (modified to UID/GID 70)
- Adding chown for sclorg-specific directories (/var/lib/pgsql, /opt/app-root)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 7b1dd2b commit 05ab071
4 files changed
Lines changed: 39 additions & 251 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 14 | + | |
55 | 15 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 16 | + | |
87 | 17 | | |
88 | 18 | | |
89 | 19 | | |
| |||
98 | 28 | | |
99 | 29 | | |
100 | 30 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 31 | + | |
106 | 32 | | |
107 | 33 | | |
108 | 34 | | |
109 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
110 | 50 | | |
111 | 51 | | |
112 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 4 | + | |
87 | 5 | | |
88 | 6 | | |
89 | 7 | | |
| |||
98 | 16 | | |
99 | 17 | | |
100 | 18 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 19 | + | |
| 20 | + | |
106 | 21 | | |
107 | 22 | | |
108 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
109 | 38 | | |
110 | 39 | | |
111 | 40 | | |
112 | 41 | | |
113 | | - | |
114 | | - | |
115 | 42 | | |
116 | 43 | | |
117 | 44 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments