{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleContainerTools/jib/issues/1193","repository_url":"https://api.github.com/repos/GoogleContainerTools/jib","labels_url":"https://api.github.com/repos/GoogleContainerTools/jib/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/GoogleContainerTools/jib/issues/1193/comments","events_url":"https://api.github.com/repos/GoogleContainerTools/jib/issues/1193/events","html_url":"https://github.com/GoogleContainerTools/jib/issues/1193","id":373751260,"node_id":"MDU6SXNzdWUzNzM3NTEyNjA=","number":1193,"title":"Manifest Version issue while pushing Docker hub registry.","user":{"login":"daylight00","id":11626674,"node_id":"MDQ6VXNlcjExNjI2Njc0","avatar_url":"https://avatars3.githubusercontent.com/u/11626674?v=4","gravatar_id":"","url":"https://api.github.com/users/daylight00","html_url":"https://github.com/daylight00","followers_url":"https://api.github.com/users/daylight00/followers","following_url":"https://api.github.com/users/daylight00/following{/other_user}","gists_url":"https://api.github.com/users/daylight00/gists{/gist_id}","starred_url":"https://api.github.com/users/daylight00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daylight00/subscriptions","organizations_url":"https://api.github.com/users/daylight00/orgs","repos_url":"https://api.github.com/users/daylight00/repos","events_url":"https://api.github.com/users/daylight00/events{/privacy}","received_events_url":"https://api.github.com/users/daylight00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-25T02:46:45Z","updated_at":"2018-10-25T04:42:36Z","closed_at":"2018-10-25T04:42:36Z","author_association":"NONE","body":"<!-- Thanks for filing an issue! Please use this template to provide more context for the issue . -->\r\n\r\n**Description of the issue**:\r\nI'm just trying to push spring boot project to my docker hub registry. But, gradle jib task is fails.\r\nSame error message #601. but My isssue is in docker hub registry. not OpenShift or Quay.io\r\nDo you guys have a method of set up manifest version or schema? \r\nOr plz let me know what problem I have.\r\n\r\nThanks.\r\n**Expected behavior**:\r\n\r\n**Steps to reproduce**: <!-- Please provide a minimal and precise series of steps -->\r\n```\r\ngradle clean build\r\n```\r\n**Environment**: <!-- OS, Maven, and other relevant environment information -->\r\nmac os high sierra 10.13\r\n\r\n**`jib-gradle-plugin` Configuration**: <!-- Delete this section if not used -->\r\n```groovy\r\nplugins {\r\n    id 'java'\r\n    id 'eclipse'\r\n    id 'idea'\r\n    id 'org.springframework.boot' version '2.0.6.RELEASE'\r\n    id \"io.spring.dependency-management\" version \"1.0.6.RELEASE\"\r\n    id 'com.google.cloud.tools.jib' version '0.9.11'\r\n}\r\n\r\ngroup = 'mygroup'\r\nversion = '0.0.1-SNAPSHOT'\r\nsourceCompatibility = 11\r\ntargetCompatibility = 11\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\nbootJar {\r\n    manifest\r\n    baseName = 'rapunzel-docker'\r\n    version =  '0.1.0'\r\n}\r\n\r\next {\r\n    springCloudVersion = 'Finchley.SR1'\r\n}\r\n\r\ndependencies {\r\n    implementation('org.springframework.cloud:spring-cloud-starter-netflix-eureka-server')\r\n    runtimeOnly('org.springframework.boot:spring-boot-devtools')\r\n    compile('org.springframework.boot:spring-boot-starter-web')\r\n    testImplementation('org.springframework.boot:spring-boot-starter-test')\r\n\r\n    compile group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.2.7'\r\n    compile group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.2.7'\r\n\r\n\r\n}\r\ndependencyManagement {\r\n    imports {\r\n        mavenBom \"org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}\"\r\n    }\r\n}\r\n\r\njib {\r\n    from {\r\n        image = 'openjdk:11-jdk-slim'\r\n    }\r\n    to {\r\n        image = 'daylight00/rapunzel'\r\n        credHelper = 'osxkeychain'\r\n        auth {\r\n            username = 'daylight00' // Defined in 'gradle.properties'.\r\n            password = 'password'\r\n        }\r\n        tags = ['tag2', 'latest']\r\n    }\r\n    container {\r\n        jvmFlags = ['-Xms512m', '-Xdebug', '-Xmy:flag=jib-rules']\r\n        mainClass = 'mygroup.rapunzel.RapunzelApplication'\r\n        args = ['some', 'args']\r\n        ports = ['8080']\r\n        labels = [key1:'value1', key2:'value2']\r\n        format = 'OCI'\r\n    }\r\n}\r\n\r\ntasks.build.dependsOn tasks.jib\r\n\r\n```\r\n\r\n**Log output**: <!-- If applicable, provide relevant log output -->\r\n```\r\nCaused by: com.google.api.client.http.HttpResponseException: 400 Bad Request\r\n{\"errors\":[{\"code\":\"MANIFEST_INVALID\",\"message\":\"manifest invalid\",\"detail\":{}}]}\r\n\r\n        at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1070)\r\n        at com.google.cloud.tools.jib.http.Connection.send(Connection.java:161)\r\n        at com.google.cloud.tools.jib.registry.RegistryEndpointCaller.call(RegistryEndpointCaller.java:229)\r\n        ... 11 more\r\n> Task :jib FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':jib'.\r\n> Tried to push image manifest for registry.hub.docker.com/daylight00/rapunzel:tag2 but failed because: Registry may not support Image Manifest Version 2, Schema 2 | If this is a bug, please file an issue at https://github.com/GoogleContainerTools/jib/issues/new\r\n```\r\n\r\n**Additional Information**: <!-- Any additional information that may be helpful -->\r\n\r\n\r\n<!-- Thanks for contributing! -->\r\n"}}
{"actor":{"display_login":"daylight00"}}