Repository navigation
Commit 88cbbd1
authored
feat(server)!: configure the server with server.toml and run workers on Podman (#1470)
* feat(server)!: read server settings from server.toml
Launchers name their location and are resolved once at start-up.
BREAKING CHANGE: --launchers, --oidc-config and --trusted-proxy-config are replaced by
sqb server --config server.toml with [[launchers.docker]], [[launchers.local]], [oidc] and
[trusted_proxy] sections. The old flags fail with a pointer to --config.
* feat(workers): bound worker containers by launcher run settings and job resources
Docker workers keep the location container's dropped capabilities and security options,
take [launchers.docker.run] memory, cpus, pids and cgroup_parent, and a job's resources,
with max_memory as the ceiling. Only positive limits are sent, so Podman workers are not
started with a zero process limit. The reference image can install a released SQLBuild.
* feat(location): check a location's health and run the stack on Podman
sqb location health prints a target's state and exits 1 when no instance has checked in for
90 seconds or its last load failed. Docker workers join the location's named network when
Podman reports it as bridge. A path-filtered and nightly Verify job runs the packaged Compose
lifecycle on rootful Podman. sqb dev and sqb location get documentation pages.
* ci: let the runner reach the root Podman socket in the Podman Compose job
GitHub's Ubuntu runner keeps /run/podman private to root, so changing the
socket's group alone left the runner user unable to connect.
* ci: build with the classic builder in the Podman Compose job
Podman has no BuildKit API, so buildx on the runner built in its own BuildKit
container and the images never reached Podman's store.1 parent 77089f2 commit 88cbbd1
66 files changed
Lines changed: 1948 additions & 392 deletions
File tree
- .github/workflows
- benchmarks/duckshop/edge_cases/orchestration
- clients/typescript
- src
- crates
- sqlbuild-cli
- src
- argv
- tests
- launcher/_helpers
- native_commands
- _helpers
- main
- server_config
- main
- workers
- _helpers
- main
- tests
- native_commands
- worker
- sqlbuild-orchestration/src
- api/_helpers/resources
- credentials/main/locations
- declarations
- main
- platform
- _helpers
- sqlbuild-python/src/bindings/_helpers
- compiled_project
- native_host
- deploy
- src/sqlbuild
- .agents/skills/sqlbuild/references/docs
- cli
- orchestration_declarations/models
- tests/integration/src/sqlbuild/compiler/compiled_project/publication
- docker
- compose
- login
- website/src
- content/docs/docs/cli
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
| |||
271 | 282 | | |
272 | 283 | | |
273 | 284 | | |
274 | | - | |
| 285 | + | |
275 | 286 | | |
276 | 287 | | |
277 | 288 | | |
| |||
298 | 309 | | |
299 | 310 | | |
300 | 311 | | |
301 | | - | |
| 312 | + | |
| 313 | + | |
302 | 314 | | |
303 | 315 | | |
304 | 316 | | |
| |||
1231 | 1243 | | |
1232 | 1244 | | |
1233 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1234 | 1286 | | |
1235 | 1287 | | |
1236 | 1288 | | |
| |||
1296 | 1348 | | |
1297 | 1349 | | |
1298 | 1350 | | |
| 1351 | + | |
1299 | 1352 | | |
1300 | 1353 | | |
1301 | 1354 | | |
| |||
1323 | 1376 | | |
1324 | 1377 | | |
1325 | 1378 | | |
| 1379 | + | |
1326 | 1380 | | |
1327 | 1381 | | |
1328 | 1382 | | |
| |||
1335 | 1389 | | |
1336 | 1390 | | |
1337 | 1391 | | |
| 1392 | + | |
1338 | 1393 | | |
1339 | 1394 | | |
1340 | 1395 | | |
| |||
1371 | 1426 | | |
1372 | 1427 | | |
1373 | 1428 | | |
1374 | | - | |
| 1429 | + | |
| 1430 | + | |
1375 | 1431 | | |
1376 | 1432 | | |
1377 | 1433 | | |
| |||
1398 | 1454 | | |
1399 | 1455 | | |
1400 | 1456 | | |
1401 | | - | |
| 1457 | + | |
| 1458 | + | |
1402 | 1459 | | |
1403 | 1460 | | |
1404 | 1461 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6309 | 6309 | | |
6310 | 6310 | | |
6311 | 6311 | | |
6312 | | - | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
6313 | 6316 | | |
6314 | 6317 | | |
6315 | 6318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | | - | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
72 | 76 | | |
73 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
74 | 89 | | |
75 | 90 | | |
76 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments