tools/stx/lib/stx
Davlet Panech 4187e73f86 Commands to reset the build environment
* stx script:
- New command "stx control is-started" to complement start/stop
- New option "stx control {start,stop} --wait"

* stx-init-env:
- new option --reset: delete chroots + restart pods
- new option --reset-hard: stop pods, delete local workspaces,
  chroots, aptly, docker & minikube profile
- rename option "--nuke" to "--delete-minikube-profile"; old spelling
  is still accepted with a warning
- renamed & refactored some functions

* import-stx:
- new env var STX_RM_METHOD: may be optionally set to "docker" for
  deleting root-owned files via "docker run", rather than "sudo"

TESTS
=========================
* Misc sanity checks using minikube & k8s
* Manually tested blacklist checks in safe_rm()
* rm via "sudo" vs "docker run"
* Using minikube:
- stx-init-env
- stx-init-env --rebuild
- stx start, build all packages, --reset, build all packages
- stx start, build all packages, --reset-hard, stx-init-env,
  build all packages

Story: 2011038
Task: 49549

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: Ife4172ae9fa7b58332ac7ad65beb99525bc2a1a3
2024-02-14 13:19:31 -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 Commands to reset the build environment 2024-02-14 13:19:31 -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 Commands to reset the build environment 2024-02-14 13:19:31 -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