Jenkins pipeline library with common functionalities for CI/CD environments, mainly targeted for the implementation of the SQA baseline requirements from https://indigo-dc.github.io/sqa-baseline/
Apache License 2.0
11
stars
6
forks
source link
Kubernetes: docker build configurations are ignored #176
With Kubernetes is expected the images to be already released in a container registry for the infrastructure deployment. Because of that the config.yml properties supported with docker-compose composer for that purpose are ignored on kubernetes composer.
Anyway there are a solution provided by Google to build images on Kubernetes that will build docker in docker: kaniko is an open-source container image-building tool. A quick guide with all details about using kaniko is published in devopskube site. So the suggested approach to build images on Kubernetes is represented by a job that will run in a pod and push the image to the registry in the end. This will be part of the kubernetes deployment or by an independent stage that can be defined in Jenkinsfile to run the required podTemplate as referenced in devopskube quick guide.
With Kubernetes is expected the images to be already released in a container registry for the infrastructure deployment. Because of that the config.yml properties supported with docker-compose composer for that purpose are ignored on kubernetes composer.
Anyway there are a solution provided by Google to build images on Kubernetes that will build docker in docker: kaniko is an open-source container image-building tool. A quick guide with all details about using kaniko is published in devopskube site. So the suggested approach to build images on Kubernetes is represented by a job that will run in a pod and push the image to the registry in the end. This will be part of the kubernetes deployment or by an independent stage that can be defined in Jenkinsfile to run the required podTemplate as referenced in devopskube quick guide.