Add containerized compilation script
Add a script for developers that allows them to compile cta
from a container. This prevents polluting the workspace and ensures consistency.
The script should spawn a Kubernetes job that uses a source cta
directory and spits out the generated rpms. The script should work in such a way that this pod can be re-used (hence the advantage over the existing ci building of the image), to ensure caching and quick build times.
Would be nice to integrate it with the redeploy.sh
script to have a single script that developers can use to setup a new instance.
File name: build_and_deploy.sh
.
Flags:
-
-r
,--reset
: Shut down the compilation pod and start a new one to ensure a fresh build. -
-s
,--source-dir
: Specify the location of the CTA project directory. -
-d
,--redeploy
: Redeploy the existing Minikube configuration with the newly compiled RPMs.