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

Jib CLI base image cache problem #4230

Open
scrat98 opened this issue Apr 1, 2024 · 0 comments
Open

Jib CLI base image cache problem #4230

scrat98 opened this issue Apr 1, 2024 · 0 comments

Comments

@scrat98
Copy link

scrat98 commented Apr 1, 2024

Jib cli not released with latest jib-core version. As a result it leads to already fixed issue #3974

Steps to repro:

  1. jib.yaml
apiVersion: jib/v1alpha1
kind: BuildFile

from:
  image: "nginx:1.25.4-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742"
  1. Execute command twice (to make cache work)
    jib build --target=docker://jib-cli-quickstart

  2. Error

java.util.concurrent.ExecutionException: java.lang.ClassCastException: class com.google.cloud.tools.jib.image.json.OciIndexTemplate cannot be cast to class com.google.cloud.tools.jib.image.json.V22ManifestListTemplate (com.google.cloud.tools.jib.image.json.OciIndexTemplate and com.google.cloud.tools.jib.image.json.V22ManifestListTemplate are in unnamed module of loader 'app')

Workaround: build jib cli from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants