tools/stx/toCOPY/aptly
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
..
aptly.conf stx tool: Create initial aptly container Dockerfile 2021-08-19 11:42:26 +08:00
entrypoint.sh stx control stop: faster shutdown 2024-02-15 14:28:54 -05:00
nginx.conf aptly docker: change nginx log files to /var/aptly 2022-10-26 10:14:35 +08:00
nginx.conf.template stx tool: Create initial aptly container Dockerfile 2021-08-19 11:42:26 +08:00
nginx.logrotate aptly docker: change nginx log files to /var/aptly 2022-10-26 10:14:35 +08:00
privkey.rsa Dockerfiles: Add example gpg key pair for repository signature 2022-03-16 17:30:34 +08:00
supervisord.aptly.conf stx tool: Create initial aptly container Dockerfile 2021-08-19 11:42:26 +08:00
supervisord.nginx.conf Fine tune nginx config 2021-10-19 17:20:40 -04:00