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

Kaniko multistage build and adding multiple git repositories

Im moving away from docker dind builds now by transition to gitlab kubernetes executor. We are investigating if i could use Kaniko for this process. Is the correct strategy to extend the kaniko image with git and then clone in the script like below…
ZerNox
  • 11
  • 3
0
votes
2 answers

How to upload and download docker images using nexus registry/repository?

I was able to publish a Docker image using the jenkins pipeline, but not pull the docker image from the nexus.I used kaniko to build the image. deployment.yml apiVersion: apps/v1 kind: Deployment metadata: labels: app: test-app name:…
island
  • 43
  • 1
  • 11
0
votes
1 answer

Why would Python not be available to a Docker Entrypoint Script?

This Python 3.9 project has a Dockerfile, that builds successfully. The file makes use of an ENTRYPOINT script to create some directories and handle some clean-up at run time. It is a bash script. The ENTRYPOINT script has no problem running until…
Beehive
  • 23
  • 1
  • 7
0
votes
0 answers

installing python-ldap is throwing error, when using a Kaniko executer to build docker image

I am using Kaniko executer to build and push a docker image to ECR with Gitlab-CI. The Docker file contains the step to install python-ldap-3.0.0, but I am getting the below error: lber.h: No such file or directory error: command 'gcc' failed with…
Code_99
  • 43
  • 1
  • 5
0
votes
0 answers

Using Kaniko Cache with Google Cloud Build does not make any difference

I have implemented the Kaniko Cache for Google Cloud Build with the following exact cloudbuild.yaml file : steps: - name: 'gcr.io/kaniko-project/executor:latest' args: - --destination=gcr.io/$PROJECT_ID/image - --cache=true -…
london_utku
  • 1,070
  • 2
  • 16
  • 36
0
votes
1 answer

Using Kaniko cache with Google Cloud Build for Google Cloud Kubernetes Deployments

We have been using Google Cloud Build via build triggers for our GitHub repository which holds a C++ application that is deployed via Google Cloud Kubernetes Cluster. As seen above, our build configuration is arriving from Dockerfile which is…
london_utku
  • 1,070
  • 2
  • 16
  • 36
0
votes
1 answer

Is it possible to push an image build with Kaniko to an Oracle container registry?

My scenario: I have an image of a self-hosted Azure agent deployed on Kubernetes and I will need to build & push a docker image of a microservice using that agent. For that, I recently began learning about Kaniko and while reading the documentation,…
Paula Gouveia
  • 63
  • 1
  • 6
0
votes
1 answer

Kaniko Image Cache in Jenkins Kubernetes Agents

Here's the Jenkinsfile, I'm spinning up: pipeline { agent { kubernetes { yaml ''' apiVersion: v1 kind: Pod metadata: name: kaniko …
0
votes
0 answers

Using Kaniko inside Kubernetes - Error: error resolving dockerfile path

I'm getting the same error message as this SO post. However after trying all the suggestions on that post, I'm still unable to resolve my issue, which is described in the following. I'm using Kaniko to build and push images for later use. I've…
Jethro Cao
  • 968
  • 1
  • 9
  • 19
0
votes
1 answer

Gitlab pipeline failing on "Cleaning up project directory and file based variables"

I have a Gitlab pipeline that is failing when it attempts docker build (using Kaniko) I am yet to do a successful docker build BUT this particular error has started after I : Changed the kaniko image from image: gcr.io/kaniko-project/executor:debug…
Golide
  • 835
  • 3
  • 13
  • 36
0
votes
1 answer

How to specify path for base image for kaniko?

I want to build image using base image files behind firewall. I have no experience with kaniko and not found suitable explanation in internet. For example I can send an image file (i.e. ubuntu + tools) to the secure network behind a firewall but I…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

Kaniko with private git repository context

I have tested Kaniko using public GitHub repo as a build context. I can give to Kaniko the git repo I want to use to build my snapsoht Docker image on top of base image, given in Dockerfile build file. Like in this "kaniko-restapi.yaml"…
catch22
  • 165
  • 5
  • 16
0
votes
0 answers

Kaniko failing to build docker image extracting tar from stdin

I am attempting to build a docker image through kaniko in our jenkins pipeline using the following command: /kaniko/executor -f `pwd`/Dockerfile \ -c `pwd` \ --insecure=true \ …
MineSQL
  • 13
  • 4
0
votes
0 answers

Alternate for docker sock for building images

I have been using below to mount docker in my deployment file. This way From the inside of my code, I can build custom images using docker command volumeMounts: - name: dockersock mountPath: "/var/run/docker.sock" volumes: - name: dockersock …
Hacker
  • 7,798
  • 19
  • 84
  • 154
0
votes
1 answer

vault-secrets-provider alias not recognized with docker-kaniko

I'm having some issues when trying to use Hashicorp vault template (kubernetes with Google Kubernetes Engine) with to.be.continuous. Actually when I use it with Google Docker Kaniko layer I got an error message: ... wget: bad address…