Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to force kaniko to build OCI images with oci manifests instead of docker manifests? #2605

Open
titou10titou10 opened this issue Jun 30, 2023 · 1 comment
Labels
feat/oci kind/feature-request kind/friction kind/question Further information is requested priority/p2 High impact feature/bug. Will get a lot of users happy

Comments

@titou10titou10
Copy link

Actual behavior
I'm not sure if it is a bug or a question. I've read somewhrer that kaniko produces oci images by default but's its not the case for me

Currently when I use kaniko to bulld an image, the media type in the manifests is "application/vnd.docker.distribution.manifest.v2+json"

Q: how to force kaniko to produce images with manifests"application/vnd.oci.image.config.v1+json"?

When I use buildah for the same build, the image is of type"application/vnd.oci.image.config.v1+json"?

Expected behavior
I want a way for the images produced by kaniko to have a media type of "application/vnd.oci.image.config.v1+json"

Additional Information

  • kaniko v1.12.1

  • build is run from tekton on OKD v4.13 (Fedora core OS 38.20230527.3.0)

  • From the tekton task:

    - name: build
      image: gcr.io/kaniko-project/executor:v1.12.1
     {...}
      args:
        - --dockerfile=$(params.DOCKERFILE)
        - --context=$(workspaces.code-git.path)/$(params.CONTEXT)
        - --destination=$(params.IMAGE_BASE):$(params.IMAGE_TAG)
        - --digest-file=$(results.IMAGE_DIGEST.path)
    

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@aaron-prindle aaron-prindle added kind/question Further information is requested feat/oci kind/feature-request kind/friction priority/p2 High impact feature/bug. Will get a lot of users happy labels Jun 30, 2023
@randlega
Copy link

Possibly related to: #1836 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/oci kind/feature-request kind/friction kind/question Further information is requested priority/p2 High impact feature/bug. Will get a lot of users happy
Projects
None yet
Development

No branches or pull requests

3 participants