Questions tagged [kaniko]

kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.

kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.

118 questions
0
votes
0 answers

Devops - Is building docker image within a docker image necessary?

I have a CICD pipeline implemented using Gitlab CICD. I am currently using Kaniko to build my services (mostly python) as a docker image. I have been wondering if is it necessary to build a new docker image using Kaniko or Docker-dind images. For…
Saewon Kye
  • 13
  • 3
0
votes
0 answers

Achieve docker compose with dind like functionality for k8s executor runner in gitlab

I want to run my pipeline on kubernetes executor runner instead of docker executor runner for GitLab. The challenge is that I am using docker-compose along with docker-in-docker currently, so I have been suggested to use Kaniko as…
SRM21
  • 453
  • 5
  • 14
0
votes
0 answers

S3 Caching on Kaniko

I am using kaniko to build images inside gitlab CI. I want to cache the layers on S3 but get an error: dial tcp: lookup s3 on xxx.xx.xxx: no such host The arguments I pass to Kaniko: "--cache=true --cache-ttl=24h --compressed-caching=false…
0
votes
1 answer

Kaniko build image job inside kubernetes container gets OOMKilled when git source context

I am building an image inside kubernetes in a container using kaniko. When running the build job I run into an issue where the build job gets OOMKilled when fetching the source context from a remote git repository. I am using the latest version of…
codezart
  • 67
  • 4
0
votes
0 answers

How to build image in GitLab CI job when git repository contains submodules that require credentials?

I have a Django project that is managed by multiple repositories: main repo - the Django project (incl. manage.py) multiple submodules - each represents an app that is installed in the Django project. I adopted this structure using this tutorial,…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
0
votes
1 answer

Kaniko with Azure Devops Context

I am trying to run kaniko builds on Kubernetes. containers: - name: kaniko image: gcr.io/kaniko-project/executor:latest args: ["--context=https://dev.azure.com/, "--destination=build:1.0.0", …
Nico
  • 1
0
votes
1 answer

build multiple docker image with kaniko and push to same project in gitlab

I am have a single multistage Dockerfile and I am build two images as part of the build. Kaniko fails on the image name which is different from the gitlab project name. I can see that in the logs that Kaniko is trying to look for a project name with…
CodeWeed
  • 971
  • 2
  • 21
  • 40
0
votes
0 answers

Add a "COPY" layer to existing image without root or equiv. ("rootless builds")

Let's say we try the impossible: a rootless build, but in a very restricted use case: adding 1 new layer with just 1 simple "rootless" COPY (or cp) directive (to a non-root-owned /tmp folder) to an existing docker image (that was built with a few…
mirekphd
  • 4,799
  • 3
  • 38
  • 59
0
votes
1 answer

Kaniko Docker build with semantic versioning from GitLab ci

I am building a Docker image using Kaniko executor, and pushing the built image to a private artifactory. I would like to use semantic versioning to be able to distinguish between later releases/versions, because I expect that multiple versions will…
0
votes
0 answers

Failed to create task run pod ... : translating TaskSpec to Pod: Get "https://index.docker.io/v2/": dial tcp 34.205.13.154:443: i/o timeout

I am running tekton-pipeline v.0.45.0 in a Kubernetes cluster v1.26.2. When I run this task : apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: hello spec: steps: - name: echo image: ubuntu script: | echo "hello" ->…
L.B
  • 1
  • 2
0
votes
2 answers

Authentication with GitLab CI in a one stage Kaniko build using two separate artifactorys

I'm building a Docker image with Kaniko. I would like to use two separate private artifactories for my GitLab CI/CD pipeline: One from which the Dockerfile takes its source image (Artifactory1/Repo1) One to which the pipeline will push the ready…
Nysa-522
  • 49
  • 3
0
votes
0 answers

I already install krb5-devel and confirm krb5-config command is present but when installing gssapi I got krb5-config not found

I have a container file that uses the base image of fedora 37. I want to install some python libraries and some of them require gssapi. I know that gssapi requires krb5-devel. I have a step to install that and I can confirm that it works by calling…
Jane
  • 151
  • 3
  • 12
0
votes
0 answers

Jenkins change code / BUILD_NUMBER during build

Do you know if and how to change code during build - using Kaniko on the cluster build. I am looking for adding a build number to a web site/ source code: sh 'sed -i "s//${BUILD_NUMBER}/" myweb.yaml' So that the web side shows the build…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
0
votes
2 answers

K3s - Kaniko - Error -The Pod "kaniko-demo" is invalid

during my internship, I have to launch a build on kubernetes. My setup is with K3s. I must have an error in my deployment file, do you have an explanation please? Thank you. deployment.yml --- kind: Namespace apiVersion: v1 metadata: name: demo …
npivaut
  • 1
  • 1
0
votes
0 answers

Using image built by kaniko in Jenkins

How can I use an image built by kaniko in Jenkins pipeline? I want to build the image, use that image to run tests for my app, and then push the image. With docker that would look something like this: steps { container('docker') { script { …
Rapolas K.
  • 1,669
  • 26
  • 34