-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Skaffold-Jib fails when trying to override image repository with docker.io/{account} #1549
Comments
We had a user with a similar problem with Guava in Gradle before. In that case, the Gradle build was pulling in a different Guava version than the version Jib needs, which doesn't have a method or a class. For Gradle, it is possible to force using a specific dependency version for building. For Maven, no idea, unfortunately. Jib 1.0.2 is using Guava
This may be a different error. |
What if we call out the version in <build>
<plugins>
...
<plugin>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
</plugin>
</plugins>
</build> |
I tried this, then this prints:
|
Basically, Jib is trying to parse the JSON returned from the registry, but it fails because the output is not something parsable as JSON. This usually happens when the endpoint you believe to be a registry endpoint isn't actually a registry and returns an HTML page, which starts with
Is |
Account is alive, it works with non-Jib Skaffold example, verbatim |
Confirmed that As a workaround, use |
File docker/hub-feedback#1767, but since they have > 900 issues open, I am not so optimistic that they will get to that soon. In the mean time, we could implement a workaround on the Jib side if the registry is |
@ivanporty Jib 1.1.0 with the fix released. |
Example used: https://github.com/GoogleContainerTools/skaffold/tree/master/examples/jib
Command line:
skaffold dev --default-repo docker.io/{account}
Note: this works fine for Dockerfile builds.
The text was updated successfully, but these errors were encountered: