Overview
You can run migetpacks as a Kubernetes Job for one-off or scheduled builds without needing the full Shipwright framework. This approach gives you direct control over the build process while still leveraging Kubernetes for orchestration.Kubernetes Job
A basic Job that builds and pushes a container image:The
privileged: true security context is required because migetpacks uses Docker-in-Docker (DinD) internally to build images.Build Cache with PVC
Use a ReadWriteMany (RWX) PersistentVolumeClaim to share package manager caches across builds. This significantly speeds up dependency installation for repeated builds.ConfigMap for Environment Variables
Use a ConfigMap to manage build configuration separately from the Job definition:Secret for Registry Credentials
Store registry credentials in a Kubernetes Secret:RESULT_FILE with Shared Volume
Use anemptyDir volume to share build results between the builder and a post-build notification container:
RESULT_FILE environment variable to write results to this volume:
status field to determine success or failure.