Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# **********************************************************************************************************************************
# Vm Definitions
#
# The vms tests can run on, the PostgreSQL versions each one provides, and what the container build needs to know about them. A vm
# name is what --vm accepts, e.g. u24 for Ubuntu 24.04. The definitions are declared here rather than in the code so that a vm and
# the container revision that goes with it are read from the same file.
#
# The definitions are checked when they are read: every supported PostgreSQL version must be tested on exactly one default vm and at
# least one default vm must collect C coverage. Without the check a new version could be added and silently never tested.
#
# - 'default' marks a vm that --vm=all selects
# - 'image' is the image the container is built from, and a vm without one has no container, i.e. it runs on the host
# - 'os-base' is the os the container is built on, which decides its package manager and where PostgreSQL is installed
# - 'db' is the PostgreSQL versions installed and 'db-test' the ones integration tests run against by default, all of them unless
#   declared. Any installed version can be tested by naming it with --pg-version, e.g. --vm=u24 --pg-version=18.
# - the rest is what the container build installs or configures, and each defaults to false or unset
#
# A vm with no container declares only 'default' and 'coverage-c'. Everything else says how a container is built, and the os the
# tests run on is then whatever the host is rather than anything that can be declared here.
# **********************************************************************************************************************************
vm:
  # No container, i.e. run directly on the host
  none:
    coverage-c: true
 
  # Alpine 3.21
  a321:
    default: true
    os-base: alpine
    image: alpine:3.21
    db:
      - 15
      - 16
      - 17
    db-test:
      - 16
    pg-repo: false
    ssh-rsa: true
 
  # Alpine 3.24
  a324:
    default: true
    os-base: alpine
    image: alpine:3.24
    db:
      - 16
      - 17
      - 18
    db-test:
      - 17
    pg-repo: false
 
  # Debian 12
  d12:
    default: true
    os-base: debian
    image: debian:12
    db:
      - 15
    pg-repo: false
    valgrind: false
 
  # RHEL 8
  rh8:
    default: true
    os-base: rhel
    image: rockylinux/rockylinux:8
    db:
      - 10
    pg-repo: false
    valgrind: false
    epel: true
    powertools: true
    python: python3.12
 
  # RHEL 9
  rh9:
    default: true
    os-base: rhel
    image: rockylinux/rockylinux:9
    db:
      - 14
      - 15
      - 16
      - 17
      - 18
    db-test:
      - 14
    pg-repo-release: EL-9
    dnf-module: true
    coverage-python: pip
    epel: true
 
  # RHEL 10
  rh10:
    default: true
    os-base: rhel
    image: rockylinux/rockylinux:10
    db:
      - 14
      - 15
      - 16
      - 17
      - 18
    db-test:
      - 18
    pg-repo-release: EL-10
    pg-repo-key: false
    coverage-python: package
    epel: true
 
  # Fedora 44
  f44:
    os-base: rhel
    image: fedora:44
    db:
      - 14
      - 15
      - 16
      - 17
      - 18
    db-test:
      - 15
    pg-repo-release: F-44
    coverage-c: true
    coverage-python: package
 
  # Ubuntu 22.04
  u22:
    default: true
    os-base: debian
    image: ubuntu:22.04
    db:
      - 10
      - 11
      - 12
      - 13
      - 14
    db-test:
      - 11
    coverage-c: true
    ssh-rsa: true
 
  # Ubuntu 24.04
  u24:
    default: true
    os-base: debian
    image: ubuntu:24.04
    db:
      - 10
      - 11
      - 12
      - 13
      - 14
      - 15
      - 16
      - 17
      - 18
      - 19
    db-test:
      - 12
      - 13
      - 19
    coverage-c: true
    coverage-python: package
    ssh-rsa: true
 
# **********************************************************************************************************************************
# Container Cache Revisions
#
# Base images are cached in the container registry (GHCR) keyed by a hash of the generated Dockerfile combined with the revision
# for the VM below. On a cache hit the image is pulled instead of being built locally, which saves a lot of time. Images are
# pushed automatically after a build when write access to the registry is available (i.e. from CI on the pgBackRest repository).
#
# A base image is built per VM and architecture, so a revision applies to a VM on a single architecture or on all of them,
# depending on how it is keyed below.
#
# The Dockerfile hash already forces a rebuild whenever the container definition changes. The revision here forces a rebuild when
# the Dockerfile is unchanged but the upstream packages have changed, e.g. a new PostgreSQL beta is released. Set values date-style
# (e.g. 20260710A) and commit to document the bump; this produces a new image tag so the next build misses the cache, rebuilds,
# and repushes.
#
# The "all" key is required and applies to every container that does not have a more specific revision, so it can only ever be
# bumped, never unset. A per-VM key overrides "all" for that container on every architecture, and a per-VM-and-architecture key
# overrides both for that container on that architecture only. Bumping "all" therefore rebuilds only the containers without a more
# specific revision; a container with a more specific revision is rebuilt by bumping that revision (or deleting its cached tag
# manually).
#
# Prefer a per-VM-and-architecture key when the packages only changed on some architectures. A per-VM key rebuilds every
# architecture the container is built for, including the emulated ones (ppc64le, s390x) that are very slow to build.
#
# Add overrides as needed, e.g.:
#   rh10: 20260710A          # rebuild rh10 on every architecture (independent of "all")
#   rh10-x86_64: 20260710A   # rebuild rh10 on x86_64 only (independent of "all" and "rh10")
# **********************************************************************************************************************************
revision:
  all: 20261113A