tools/stx/lib/stx
Davlet Panech 86d219ada7 stx control stop: faster shutdown
Make sure aptly & builder containers catch and handle SIGTERM. Otherwise
"stx stop" sends the signal, 2 out of 6 containers ignore it, then
docker waits for ~15 seconds and SIGKILL's them.

* stx-builder.Dockerfile: change default image command from plain "bash"
  to "tini" that starts "sleep infinity". Tini catches and broadcasts
  signals to its own children (sleep), enabling graceful shutdown to
  work

* aptly: replace call to "supervisord" to "exec supervisord", to make
  sure it runs as PID 1 and actually receives signals from docker.

* stx_control.py: slightly reduce loop sleep time in "stx control stop"

TESTS
==================
* Retest "stx control start --wait"
* Make sure builder's entry point executes "finisSetup.sh" script, as
  before this change
* Make sure "stx control stop --wait" exits quickly (~4 seconds on my
  machine, down from ~15 seconds)

Story: 2011038
Task: 49577

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I984846fc45349be045c069b84186f12179fe36ad
2024-02-15 14:28:54 -05:00
..
.gitignore import-stx: Avoid divide by zero 2022-01-31 13:17:16 -05:00
__init__.py stx tool: Initial the stx tool for starlingx debian building 2021-06-10 21:55:18 -04:00
config.py stx cleanup: new sub-command 2023-09-18 15:16:06 -04:00
helper.py stx-tool: config: Add the support of config module 2021-09-01 03:54:44 -04:00
k8s.py stx control stop: faster shutdown 2024-02-15 14:28:54 -05:00
stx_build.py debian: stx tool: std/rt support 2022-05-05 07:41:09 -04:00
stx_cleanup.py stx cleanup: new sub-command 2023-09-18 15:16:06 -04:00
stx_configparser.py Remove obsolete stx.conf upgrade 2023-11-07 11:14:20 -05:00
stx_control.py stx control stop: faster shutdown 2024-02-15 14:28:54 -05:00
stx_main.py Commands to reset the build environment 2024-02-14 13:19:31 -05:00
stx_repomgr.py Remove pkgbuilder help text from repomgr commands 2022-03-09 16:14:27 -05:00
stx_shell.py debian: stx: shell: support multi-line commands 2022-06-09 22:06:13 -04:00
utils.py stx-tool: config: Add the support of config module 2021-09-01 03:54:44 -04:00