I am exploring the new option of building an image with Kaniko. I got success.
This was required because, we have private repos that we need to fetch in Dockerfile, and concourse vito/oci-build-image does not support.
- Custom image which had Kaniko, gcloud installed. Used this image and image_resource in task config.
- Developed shell script, which executes kaniko for generating image.tar file which was successful.
The issue is that if I have multiple jobs then only one task finishes successfully, Rest is failing because it uses the same volumes and other resources which does not allow me to execute the same command multiple times in different jobs.
Do we have the solution for this. Also, I noticed that we can not pass entrypoint parameter with image_resource so we can use kaniko provided image for the building an oci image.
The concourse team really needs to work on this. Like in GitLab, we can provide an entrypoint along with an image config.
Refer: Using Docker images | GitLab