tools/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
..
bin stx tool: Initial the stx tool for starlingx debian building 2021-06-10 21:55:18 -04:00
dockerfiles LAT: update to lat-sdk-20231206 2023-12-07 23:36:35 +08:00
lib/stx Commands to reset the build environment 2024-02-14 13:19:31 -05:00
stx-build-tools-chart/stx-builder cengn reference removal - debian 2023-11-07 21:31:00 -05:00
toCOPY cengn reference removal - debian 2023-11-07 21:31:00 -05:00