Build
We have repeteadly talked about Build in both Project documentation and Initial Build documentation. A build is basically a template of an OS, libraries and other dependencies of the project you deploy.
Build creation
To create a Build you only need four parameters, only the Project field is required as the other three are, if not set, wait until this access is automatically enabled are chosen by default:
- Project: Refers to what we call ProjectEnv, here you choose which ProjectEnv you want to build.
- Branch: Lets you choose any branch of the repository that you've chosen as Project. Defaults to Environment name.
- Commit hash: You can also choose the commit has to build a specific commit and not the last one as we do by default. Defaults to last commit.
- Tag: Just a tag to differentiate builds. Defaults to 'latest'.
Why do we need to Build a Docker image?
As we use Helm charts we need the image because is what they use to deploy a Kubernetes Release.
Remember that you need a Build to update the code that the Deployment runs inside the Kubernetes Cluster.
SleakOps has its own CLI Tool that you can use to automate Builds and Deployments in your CI/CD. More info here.
FAQs
¿Por qué mi build está fallando o siendo terminado?
Antes de asumir que es un problema de recursos, revisa tus logs de build para identificar la causa real del fallo. Busca mensajes de error específicos que indiquen restricciones de recursos como OOMKilled o errores de límites de recursos.
Si tu proceso de build está fallando inesperadamente o siendo terminado, a menudo se debe a recursos insuficientes (CPU o memoria) asignados para el proceso de build. El Pod que ejecuta el build puede ser eliminado por Kubernetes cuando excede los límites de recursos configurados.
Síntomas comunes:
- El build falla con errores OOMKilled (Out of Memory / Sin Memoria)
- El proceso de build se detiene a mitad de ejecución sin mensajes de error claros
- El build es extremadamente lento o parece congelado
Solución: Aumenta los recursos de build en Proyecto → Configuración → Deploy Build Resources. Consulta la documentación de Recursos de Deploy Build para instrucciones detalladas sobre cómo ajustar las asignaciones de CPU y memoria.