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

MojoExecutionException: Invalid image creation time: 2020-04-21T13:22:10.836777828-07:00 #2428

Closed
YanzheL opened this issue Apr 27, 2020 · 8 comments · Fixed by #2455
Closed
Assignees
Milestone

Comments

@YanzheL
Copy link

YanzheL commented Apr 27, 2020

Environment:

  • Jib version: 2.2.0
  • Build tool: docker image maven:3-jdk-11
  • OS: docker image maven:3-jdk-11

Description of the issue:

The JIB build passes with builder image maven:3-jdk-14 in GitLab-CI, but fails on maven:3-jdk-11. The error message is weird and I cannot reproduce it if JDK > 11.

In my local environment the build passes.

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 13.0.2, vendor: N/A, runtime: /usr/local/Cellar/openjdk/13.0.2+8_2/libexec/openjdk.jdk/Contents/Home
Default locale: en_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.4", arch: "x86_64", family: "mac"

Expected behavior:

Build on maven:3-jdk-11.

Steps to reproduce:

  1. Build command is:
mvn --batch-mode --errors --fail-at-end --show-version \
        compile jib:build \
        -pl ${SUB_MODULE_NAME} \
        -Djib.console=plain \
        -Djib.httpTimeout=60000 \
        -Djib.baseImageCache=$CI_PROJECT_DIR/.jib/base \
        -Djib.applicationCache=$CI_PROJECT_DIR/.jib/app \
        -Djib.to.auth.username=$CI_REGISTRY_USER \
        -Djib.to.auth.password=$CI_REGISTRY_PASSWORD
        -Djib.from.image=XXXXX \
        -Djib.to.image=XXXXXXXX

jib-maven-plugin Configuration:

...
      <plugin>
        <artifactId>jib-maven-plugin</artifactId>
        <groupId>com.google.cloud.tools</groupId>
        <version>2.2.0</version>
        <configuration>
          <container>
            <format>OCI</format>
            <jvmFlags>
              <jvmFlag>-server</jvmFlag>
              <jvmFlag>-Dio.netty.tryReflectionSetAccessible=false</jvmFlag>
            </jvmFlags>
            <user>1001:1001</user>
            <volumes>
              <volume>/data</volume>
            </volumes>
            <workingDirectory>/app</workingDirectory>
          </container>
          <from>
            <image>XXXXX</image>
          </from>
          <to>
            <image>XXXXXXXXX</image>
          </to>
        </configuration>
      </plugin>
...

Log output:

23488 [INFO] --- jib-maven-plugin:2.2.0:build (default-cli) @ stream ---
 24473 [INFO] 
 24476 [INFO] Containerizing application to XXXXXXXX...
 24497 [WARNING] Base image 'XXXXXXXX' does not use a specific image digest - build may not be reproducible
 24627 [INFO] Using credentials from <to><auth> for registry.gitlab.com/XXXXXXXX
 24634 [INFO] Getting manifest for base image XXXXXXXX...
 24672 [INFO] Building dependencies layer...
 24682 [INFO] Building snapshot dependencies layer...
 24689 [INFO] Building resources layer...
 24698 [INFO] Building classes layer...
 26326 [INFO] The base image requires auth. Trying again for XXXXXXXX...
 26894 [INFO] Using base image with digest: sha256:c181b1141de2f559444b6e3867a611d3c77ca9c02c9893808353341e1740f34b
 27244 [INFO] 
 27246 [INFO] ------------------------------------------------------------------------
 27249 [INFO] BUILD FAILURE
 27249 [INFO] ------------------------------------------------------------------------
 27255 [INFO] Total time:  25.008 s
 27259 [INFO] Finished at: 2020-04-27T03:57:09Z
 27265 [INFO] ------------------------------------------------------------------------
 27271 [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.2.0:build (default-cli) on project stream: Invalid image creation time: 2020-04-21T13:22:10.836777828-07:00: Text '2020-04-21T13:22:10.836777828-07:00' could not be parsed at index 29 -> [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.2.0:build (default-cli) on project stream: Invalid image creation time: 2020-04-21T13:22:10.836777828-07:00
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke (Method.java:566)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Invalid image creation time: 2020-04-21T13:22:10.836777828-07:00
     at com.google.cloud.tools.jib.maven.BuildImageMojo.execute (BuildImageMojo.java:162)
     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke (Method.java:566)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
 Caused by: com.google.cloud.tools.jib.image.json.BadContainerConfigurationFormatException: Invalid image creation time: 2020-04-21T13:22:10.836777828-07:00
     at com.google.cloud.tools.jib.image.json.JsonToImageTranslator.configureBuilderWithContainerConfiguration (JsonToImageTranslator.java:151)
     at com.google.cloud.tools.jib.image.json.JsonToImageTranslator.toImage (JsonToImageTranslator.java:136)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.pullBaseImage (PullBaseImageStep.java:253)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:160)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:56)
     at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly (TrustedListenableFutureTask.java:125)
     at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:69)
     at com.google.common.util.concurrent.TrustedListenableFutureTask.run (TrustedListenableFutureTask.java:78)
     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
     at java.lang.Thread.run (Thread.java:834)
 Caused by: java.time.format.DateTimeParseException: Text '2020-04-21T13:22:10.836777828-07:00' could not be parsed at index 29
     at java.time.format.DateTimeFormatter.parseResolved0 (DateTimeFormatter.java:2046)
     at java.time.format.DateTimeFormatter.parse (DateTimeFormatter.java:1948)
     at java.time.Instant.parse (Instant.java:395)
     at com.google.cloud.tools.jib.image.json.JsonToImageTranslator.configureBuilderWithContainerConfiguration (JsonToImageTranslator.java:148)
     at com.google.cloud.tools.jib.image.json.JsonToImageTranslator.toImage (JsonToImageTranslator.java:136)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.pullBaseImage (PullBaseImageStep.java:253)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:160)
     at com.google.cloud.tools.jib.builder.steps.PullBaseImageStep.call (PullBaseImageStep.java:56)
     at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly (TrustedListenableFutureTask.java:125)
     at com.google.common.util.concurrent.InterruptibleTask.run (InterruptibleTask.java:69)
     at com.google.common.util.concurrent.TrustedListenableFutureTask.run (TrustedListenableFutureTask.java:78)
     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
     at java.lang.Thread.run (Thread.java:834)
 27370 [ERROR] 
 27370 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 27370 [ERROR] 
 27370 [ERROR] For more information about the errors and possible solutions, please read the following articles:
 27370 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Additional Information:

@chanseokoh
Copy link
Member

chanseokoh commented Apr 27, 2020

Hi @YanzheL,

I don't know what base image you are using, but the offending timestamp (2020-04-21T13:22:10.836777828-07:00) is the creation time of the base image.

And looks like Instant.parse from JDK 14 can parse the timestamp while JDK 11 cannot.

$ docker run --rm -it openjdk:14-jdk
Apr 27, 2020 2:28:44 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
|  Welcome to JShell -- Version 14.0.1
|  For an introduction type: /help intro

jshell> java.time.Instant.parse("2020-04-21T13:22:10.836777828-07:00");
$1 ==> 2020-04-21T20:22:10.836777828Z

jshell> 
$ docker run --rm -it openjdk:11-jdk
Apr 27, 2020 2:28:54 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
|  Welcome to JShell -- Version 11.0.7
|  For an introduction type: /help intro

jshell> java.time.Instant.parse("2020-04-21T13:22:10.836777828-07:00");
|  Exception java.time.format.DateTimeParseException: Text '2020-04-21T13:22:10.836777828-07:00' could not be parsed at index 29
|        at DateTimeFormatter.parseResolved0 (DateTimeFormatter.java:2046)
|        at DateTimeFormatter.parse (DateTimeFormatter.java:1948)
|        at Instant.parse (Instant.java:395)
|        at (#1:1)

jshell> java.time.Instant.parse("2020-04-21T20:22:10.836777828Z"); # equivalent in UTC
$14 ==> 2020-04-21T20:22:10.836777828Z

We will investigate this further.

@chanseokoh chanseokoh added this to the v2.3.0 milestone Apr 27, 2020
@YanzheL
Copy link
Author

YanzheL commented Apr 27, 2020

Interesting, so this is a JDK issue. Can’t believe this bug shows in JDK LTS version. Is this timestamp special?

BTW, the base image is leeyanzhe/jvm:graalvm-ee-java11, and the timestamp of this image may change in future.

@chanseokoh
Copy link
Member

chanseokoh commented Apr 27, 2020

@YanzheL I can't say yet this is a JDK issue. ATM, it just seems like Instant.parse can cover more formats in JDK 14. We may be able to update Jib to parse this timestamp format too, but we'll have to investigate further. I didn't think the timestamp looks special.

UPDATE: see https://stackoverflow.com/a/61465927/1701388. Java 12 and higher can parse a string with an offset.

@chanseokoh
Copy link
Member

chanseokoh commented Apr 27, 2020

@YanzheL I checked the container config of leeyanzhe/jvm:graalvm-ee-java11 and noticed that the creation time changed. (The time went backward.) Looks like you deleted the most recent image? Now Jib can parse the timestamp of the image built on 04-19, right?

$ docker inspect leeyanzhe/jvm:graalvm-ee-java11
...
"Created": "2020-04-19T17:53:34.509594314Z",

And how did you create the base image of date 04-21? Using Dockerfile and building on your machine? What's the different in the build process between the image of 04-19 and 04-21?

@chanseokoh
Copy link
Member

chanseokoh commented Apr 27, 2020

JDK-8166138 is the corresponding bug and says that the fix is available starting from Java 12.

Actual fix: http://hg.openjdk.java.net/jdk/jdk/rev/6f58ecdb060a

Maybe we can try one of the solutions in https://stackoverflow.com/q/51284995/1701388 when Instant.parse() fails.

@YanzheL
Copy link
Author

YanzheL commented Apr 28, 2020

@YanzheL I checked the container config of leeyanzhe/jvm:graalvm-ee-java11 and noticed that the creation time changed. (The time went backward.) Looks like you deleted the most recent image? Now Jib can parse the timestamp of the image built on 04-19, right?

$ docker inspect leeyanzhe/jvm:graalvm-ee-java11
...
"Created": "2020-04-19T17:53:34.509594314Z",

And how did you create the base image of date 04-21? Using Dockerfile and building on your machine? What's the different in the build process between the image of 04-19 and 04-21?

@chanseokoh
My mistake, the base image is leeyanzhe/jvm:zing-11

docker inspect result with BuildKit (click to expand)
docker inspect leeyanzhe/jvm:zing-11
[
    {
        "Id": "sha256:09b529918e44020fcd965613982af3807eeaccd42cfc5e7b64655054d8dbba0b",
        "RepoTags": [
            "leeyanzhe/jvm:zing-11"
        ],
        "RepoDigests": [
            "leeyanzhe/jvm@sha256:c181b1141de2f559444b6e3867a611d3c77ca9c02c9893808353341e1740f34b"
        ],
        "Parent": "",
        "Comment": "buildkit.dockerfile.v0",
        "Created": "2020-04-21T13:22:10.836777828-07:00",
        "Container": "",
        "ContainerConfig": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": null,
            "Cmd": null,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "container=oci",
                "LANG=en_US.UTF-8"
            ],
            "Cmd": [
                "java",
                "-version"
            ],
            "ArgsEscaped": true,
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {
                "architecture": "x86_64",
                "authoritative-source-url": "registry.access.redhat.com",
                "build-date": "2020-03-31T14:54:13.907559",
                "com.redhat.build-host": "cpt-1007.osbs.prod.upshift.rdu2.redhat.com",
                "com.redhat.component": "ubi8-container",
                "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
                "description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "distribution-scope": "public",
                "io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "io.k8s.display-name": "Red Hat Universal Base Image 8",
                "io.openshift.expose-services": "",
                "io.openshift.tags": "base rhel8",
                "maintainer": "Red Hat, Inc.",
                "name": "ubi8",
                "release": "408",
                "summary": "Provides the latest release of Red Hat Universal Base Image 8.",
                "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.1-408",
                "vcs-ref": "26f36bfa3e3a04c8c866b250924c1aefc34f01c9",
                "vcs-type": "git",
                "vendor": "Red Hat, Inc.",
                "version": "8.1"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 1142757341,
        "VirtualSize": 1142757341,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/580573890dc8b59197bbfb4c9a8953e3030351270d4d8525c53ed767d302e5ed/diff:/var/lib/docker/overlay2/727f8e644ece3d88c701ae45e9bb2c8caec70b3999e19369780e83446ca24c04/diff",
                "MergedDir": "/var/lib/docker/overlay2/40db834b1c78ec5bbe74cf5257094d858e3255c8f6129a72ca18da0fa13f0aa2/merged",
                "UpperDir": "/var/lib/docker/overlay2/40db834b1c78ec5bbe74cf5257094d858e3255c8f6129a72ca18da0fa13f0aa2/diff",
                "WorkDir": "/var/lib/docker/overlay2/40db834b1c78ec5bbe74cf5257094d858e3255c8f6129a72ca18da0fa13f0aa2/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:d3ada5af5602bd0da378e4f0144f8fe8bdbe3f5a65f367dd9ebe759756bada68",
                "sha256:668db11eda933a46ae8030a8643b96088218dae0efeac54bc6dbc88488725c1b",
                "sha256:e8e551d9c6618ae92697dc2df9bbb5967e58a8da0ec10dff023ca148a5e6d280"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

Dockerfile:

FROM registry.access.redhat.com/ubi8/ubi

ARG URL="https://cdn.azul.com/zing-zvm/ZVM20.03.0.0/zing-jdk11.0.0-20.03.0.0-1.tar.gz"

ENV LANG=en_US.UTF-8

RUN set -eux \
    && cd /opt \
    && curl -L "$URL" | tar xvz \
    && cd * \
    && export JAVA_HOME="$(pwd)" \
    # Set alternative links
    && mkdir -p "/usr/java" \
    && ln -sfT "$JAVA_HOME" /usr/java/default \
    && ln -sfT "$JAVA_HOME" /usr/java/latest \
    && for bin in "$JAVA_HOME/bin/"*; do \
        base="$(basename "$bin")"; \
        [ ! -e "/usr/bin/$base" ]; \
        alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
       done

CMD [ "java", "-version"]

This base image was built by Docker Desktop 19.03.8 on macOS with Docker Buildkit enabled.

export DOCKER_BUILDKIT=1
docker build .

@YanzheL
Copy link
Author

YanzheL commented Apr 28, 2020

Maybe this is because Docker Buildkit produces timestamps in different format which contain an offset that JDK 11 cannot parse?

As the doc states for Instant#parse(CharSequence text) :
The string must represent a valid instant in UTC and is parsed using DateTimeFormatter.ISO_INSTANT

2020-04-21T13:22:10.836777828-07:00 is special because it isn't a UTC time and it contains timezone offset.

If I build the base image with docker buildkit disabled, the timestamp 2020-04-28T05:02:41.764890897Z is in UTC format

docker inspect result without BuildKit (click to expand)
export DOCKER_BUILDKIT=0
docker build -t leeyanzhe/jvm:zing-11-test .
docker inspect leeyanzhe/jvm:zing-11-test

[
    {
        "Id": "sha256:b2920e7a45b4738341eea7d81d486a975fa0e05a53edfe9a44e39277309763ff",
        "RepoTags": [
            "leeyanzhe/jvm:zing-11-test"
        ],
        "RepoDigests": [],
        "Parent": "sha256:9cf3e90d8fd55fb278bafdf2a4249bcecdcfd396755818e1f81dca7f3550e717",
        "Comment": "",
        "Created": "2020-04-28T05:02:41.764890897Z",
        "Container": "1b8f22e4cc6c9653ba82b1938165e18ad0672754b805998c1c2bf723a12d68ea",
        "ContainerConfig": {
            "Hostname": "c6feedc4030e",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "container=oci",
                "LANG=en_US.UTF-8"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "CMD [\"java\" \"-version\"]"
            ],
            "Image": "sha256:9cf3e90d8fd55fb278bafdf2a4249bcecdcfd396755818e1f81dca7f3550e717",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": [],
            "Labels": {
                "architecture": "x86_64",
                "authoritative-source-url": "registry.access.redhat.com",
                "build-date": "2020-03-31T14:54:13.907559",
                "com.redhat.build-host": "cpt-1007.osbs.prod.upshift.rdu2.redhat.com",
                "com.redhat.component": "ubi8-container",
                "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
                "description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "distribution-scope": "public",
                "io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "io.k8s.display-name": "Red Hat Universal Base Image 8",
                "io.openshift.expose-services": "",
                "io.openshift.tags": "base rhel8",
                "maintainer": "Red Hat, Inc.",
                "name": "ubi8",
                "release": "408",
                "summary": "Provides the latest release of Red Hat Universal Base Image 8.",
                "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.1-408",
                "vcs-ref": "26f36bfa3e3a04c8c866b250924c1aefc34f01c9",
                "vcs-type": "git",
                "vendor": "Red Hat, Inc.",
                "version": "8.1"
            }
        },
        "DockerVersion": "19.03.8",
        "Author": "",
        "Config": {
            "Hostname": "c6feedc4030e",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "container=oci",
                "LANG=en_US.UTF-8"
            ],
            "Cmd": [
                "java",
                "-version"
            ],
            "Image": "sha256:9cf3e90d8fd55fb278bafdf2a4249bcecdcfd396755818e1f81dca7f3550e717",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": [],
            "Labels": {
                "architecture": "x86_64",
                "authoritative-source-url": "registry.access.redhat.com",
                "build-date": "2020-03-31T14:54:13.907559",
                "com.redhat.build-host": "cpt-1007.osbs.prod.upshift.rdu2.redhat.com",
                "com.redhat.component": "ubi8-container",
                "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
                "description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "distribution-scope": "public",
                "io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
                "io.k8s.display-name": "Red Hat Universal Base Image 8",
                "io.openshift.expose-services": "",
                "io.openshift.tags": "base rhel8",
                "maintainer": "Red Hat, Inc.",
                "name": "ubi8",
                "release": "408",
                "summary": "Provides the latest release of Red Hat Universal Base Image 8.",
                "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.1-408",
                "vcs-ref": "26f36bfa3e3a04c8c866b250924c1aefc34f01c9",
                "vcs-type": "git",
                "vendor": "Red Hat, Inc.",
                "version": "8.1"
            }
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 1142757341,
        "VirtualSize": 1142757341,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/580573890dc8b59197bbfb4c9a8953e3030351270d4d8525c53ed767d302e5ed/diff:/var/lib/docker/overlay2/727f8e644ece3d88c701ae45e9bb2c8caec70b3999e19369780e83446ca24c04/diff",
                "MergedDir": "/var/lib/docker/overlay2/3ac9abeecc0dfb32432366fbd4fedd0f40e1e45afdcb517794986fb01e582d96/merged",
                "UpperDir": "/var/lib/docker/overlay2/3ac9abeecc0dfb32432366fbd4fedd0f40e1e45afdcb517794986fb01e582d96/diff",
                "WorkDir": "/var/lib/docker/overlay2/3ac9abeecc0dfb32432366fbd4fedd0f40e1e45afdcb517794986fb01e582d96/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:d3ada5af5602bd0da378e4f0144f8fe8bdbe3f5a65f367dd9ebe759756bada68",
                "sha256:668db11eda933a46ae8030a8643b96088218dae0efeac54bc6dbc88488725c1b",
                "sha256:c263fc1f428d2c01aa30afbbe7b8a082370076452c43dc689dbe7f1dff3be251"
            ]
        },
        "Metadata": {
            "LastTagTime": "2020-04-28T05:02:41.889119218Z"
        }
    }
]

@chanseokoh
Copy link
Member

@YanzheL Jib 2.3.0 is released with this fix!

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

Successfully merging a pull request may close this issue.

2 participants