Commit 80cf3cb
Agent
Switch integration test deployment to httpd mode
Deploy CTS under Apache httpd on port 8080 to match the production
runtime, instead of Flask's built-in dev server on port 5005.
- Add a cts-config ConfigMap with two files:
- config.py: ProdConfiguration (AUTH_BACKEND=noauth, PostgreSQL URI)
so init_config loads it via the file-based path without needing
CTS_DEVELOPER_ENV.
- httpd.conf: minimal Apache + mod_wsgi config listening on 8080.
ServerRoot is /etc/httpd so LoadModule paths resolve correctly.
All writable paths (PidFile, Mutex, ErrorLog) go under /tmp/httpd
which the container creates at startup, avoiding permission issues
under OpenShift restricted-v2 SCC.
- Mount the ConfigMap at /etc/cts (read-only) in both the migration
init container and the main cts container.
- Override the main container command to mkdir -p /tmp/httpd/run then
exec httpd -DFOREGROUND -f /etc/cts/httpd.conf, bypassing the image
default start_cts_from_here script which hardcodes CTS_DEVELOPER_ENV=1.
- Remove CTS_DEVELOPER_ENV and SQLALCHEMY_DATABASE_URI env vars from
both containers (configuration now comes from the ConfigMap file).
- Update all port references from 5005 to 8080: Service port/targetPort,
containerPort, readinessProbe, livenessProbe, and CTS_URL in the
run-tests step.
Fixes #73
Generated-By: OpenCode (google-vertex-anthropic/claude-sonnet-4-6@default)1 parent 7f048dc commit 80cf3cb
1 file changed
Lines changed: 61 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
243 | 278 | | |
244 | 279 | | |
245 | 280 | | |
| |||
250 | 285 | | |
251 | 286 | | |
252 | 287 | | |
253 | | - | |
254 | | - | |
| 288 | + | |
| 289 | + | |
255 | 290 | | |
256 | 291 | | |
257 | 292 | | |
| |||
275 | 310 | | |
276 | 311 | | |
277 | 312 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | 313 | | |
284 | 314 | | |
285 | 315 | | |
| |||
289 | 319 | | |
290 | 320 | | |
291 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
292 | 326 | | |
293 | 327 | | |
294 | 328 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
300 | 336 | | |
301 | | - | |
| 337 | + | |
302 | 338 | | |
303 | 339 | | |
304 | 340 | | |
| |||
309 | 345 | | |
310 | 346 | | |
311 | 347 | | |
312 | | - | |
| 348 | + | |
313 | 349 | | |
314 | 350 | | |
315 | 351 | | |
316 | 352 | | |
317 | 353 | | |
318 | 354 | | |
319 | 355 | | |
320 | | - | |
| 356 | + | |
321 | 357 | | |
322 | 358 | | |
323 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
324 | 368 | | |
325 | 369 | | |
326 | 370 | | |
| |||
425 | 469 | | |
426 | 470 | | |
427 | 471 | | |
428 | | - | |
| 472 | + | |
429 | 473 | | |
430 | 474 | | |
431 | 475 | | |
| |||
448 | 492 | | |
449 | 493 | | |
450 | 494 | | |
451 | | - | |
| 495 | + | |
452 | 496 | | |
453 | 497 | | |
454 | 498 | | |
| |||
0 commit comments