Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    sineaggi
    @sineaggi:matrix.org
    [m]
    like it's only accepting and overwriting the first 34 bytes over and over again
    sineaggi
    @sineaggi:matrix.org
    [m]
    Github upload succeeds in two cases: one where all of the data is uploaded in the final put and no patchs are sent (with the current code in the branch) or if all the data is sent in a patch, and then completed with an empty put (simple change to the for loop). Multiple patchs is where I start hitting troubles with github.
    Chanseok Oh
    @chanseokoh
    Hmm... it's concerning that they don't support it. Are you using the legacy docker.pkg.github.com or the new ghcr.io?
    sineaggi
    @sineaggi:matrix.org
    [m]
    Yep for sure the new ghcr.io, authenticated with a personal token. That 34 bytes is arbitrary btw, just the chunk size i was using during testing (these are very small test layers).
    i couldn't find a way to configure the docker cli to push using smaller chunk sizes to test github
    Chanseok Oh
    @chanseokoh
    The chunked upload is nice, but a major repo like ghcr.io doesn't support it, I think we need to be very careful about the implementation.
    sineaggi
    @sineaggi:matrix.org
    [m]
    i was going to report the bug to github unless anybody here saw anything obviously wrong with my code.
    Chanseok Oh
    @chanseokoh
    Yeah yeah maybe you should file a bug.
    12 replies
    ZealousMacwan
    @ZealousMacwan
    I don't want to push image to registry but only to build locally. Can anyone help me with that?
    Charlie Hubbard
    @chubbard
    I just installed jib as a plugin, but I'm getting the following error:
    > No signature of method: build_4hsbqpanwhbni660d2nicy9gi.jib() is applicable for argument types: (build_4hsbqpanwhbni660d2nicy9gi$_run_closure5) values: [build_4hsbqpanwhbni660d2nicy9gi$_run_closure5@1889c7ed] I have a jib {...} closure block to configure the jib task, but it's throwing that error when I refresh the project in Intellij.
    I'm using the latest version 3.1.3
    Charlie Hubbard
    @chubbard
    Nvm it was something else.
    Daniel Zou
    @dzou

    @ZealousMacwan -- Hey, try these instructions for building an image to a local docker daemon with Jib: https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#can-i-build-to-a-local-docker-daemon

    I think this is what you want.

    Cristiano Gavião
    @cvgaviao

    Hello all!
    I had a multi-stage dockerFile where I'm setting up graalvm environment, copying the jars from my project and then building a native image in the first layers, and then copying the resulting artifacts to the last layer.

    Would this kind of building scenario be possible using Jib?

    3 replies
    yverrette
    @yverrette

    I have been using jib on various projects for more than a couple years. Had a problem recently with AWS Fargate where running local version of container on a mac would work fine and running on AWS errored out due to duplicate methods. Somehow the classes load order changed from local container to AWS. Same application had similar issue with just a restart on Fargate where again classes load order failed the application launch (missing method on the core version of a transitive lib version).

    I understand that I can look for duplicate methods and fix this at build time but Spring Boot already has mechanism to enforce class load order through JarLauncher. Is there a mechanism in jib to enforce class load order?

    3 replies
    Cristiano Gavião
    @cvgaviao

    Hi all,
    I was trying to containerize a legacy project where its JAR contains multiple entry points (classes with main() method). All those different classes are called by a scheduler and using a *.sh script.

    But Jib gave me an error because of the multiple valid main classes.

    Is there any way to work around this need to have a single entry point?

    1 reply
    Kyle Rowan
    @karowan
    Hi, is there a way to prefix the default entrypoint? For example I need to inject secrets using something called doppler which can be done by running doppler run -- <command>. What I would like to do is just prefix the default entrypoint with ["doppler", "run", "--"] without completely overwriting the default one. Any help would be appreciated.
    7 replies
    Rohan Rajpal
    @rohanrajpal
    Hey
    I can't seem to set the from property in paths in extraDirectories in the jib gradle plugin
    A problem occurred evaluating project ':tourlandish.aries'.
    > Cannot set the value of read-only property 'from' for extension 'jib' of type com.google.cloud.tools.jib.gradle.JibExtension.
    If anyone can help, would appreciate it a lot
    Rohan Rajpal
    @rohanrajpal
    Nvm it was a silly mistake
    seanleblancicdtech
    @seanleblancicdtech
    i had a question - suppose we are using Java 11, and our application seems to need the java.desktop module? What is the most idiomatic way to add that into the image?
    47 replies
    kent7301
    @kent7301
    Hello
    1 reply
    James Todd
    @jwtodd

    jib via gradle fan/user

    recently migrated from osx docker-desktop to microk8s

    q: is jib publishing to microk8s:registry(containerd) supported? doable?

    thx in advance

    1 reply
    Siddharth Mundada
    @svmundada

    Hi all,
    I am trying to understand the base image cache directory structured specified by -Djib.baseImageCache and how it works.

    bash-5.0$ tree /tmp/baseimage10/
    /tmp/baseimage10/
    -- images
        -- myregistry.jib.com
            -- myrepo
                -- myimage!sha256!mysha
                    |-- lock
                    -- manifests_configs.json

    Where are the actual layers stored?
    Thanks

    3 replies
    NicklasWallgren
    @NicklasWallgren
    Hey, it is possible to build docker images using the docker daemon? We have encountered invalid source release errors, since jib relies on the current installed version of JDK.
    12 replies
    Two4
    @Two4
    I'm encountering a strange error when executing "mvn clean compile jib:dockerBuild" with intelliJ - the build outputs the error C:\Users\(redacted)\AppData\Local\Temp\(long path)\layer.tar: A required privilege is not held by the client.
    30 replies
    Laurensius Bernhard
    @l7777777b

    Hi @/all, I'm struggling to understand, is there any guides on how i can use Jib and cloud build together? thanks

    hi guys, is there any updated preferred way to use jib with gradle on google cloud build? is it possible to use gradlew instead of preinstalled gradle image?

    1 reply
    Clayton Walker
    @Sineaggi
    Does jib currently support per-arch extraDirectories? I'm looking into adding jlink support (which would generate custom jres per arch supported, via the org.beryx.runtime gradle plugin
    2 replies
    By support I mean does the jib plugin api allow you to add files to layers per architecture
    Clayton Walker
    @Sineaggi
    Also somewhat related, does distroless generate java 11 arm images?
    2 replies
    seanleblancicdtech
    @seanleblancicdtech
    It seems that Jib is now using AdoptOpenJDK images by default? We were using distroless (up until recently) - since Java 1.17 is LTS and GA now, we are looking around at what we would do to build our images on that - is there a recommended path for this from the Jib team?
    3 replies
    Deepankar Dixit
    @ddixit:matrix.org
    [m]
    for further reference, you can also have a look at this
    1 reply
    zackzack02
    @zackzack02
    Hi guys, is it possible to make jib create a container which has jdk installed ?
    5 replies
    Jure Repe
    @jrepe
    Hey, I was wondering, do you guys have any plans to support building native images with the jib-quarkus-gradle extension? I've noticed in the README that currently this isn't covered.
    18 replies
    seanleblancaticdtech
    @seanleblancaticdtech:matrix.org
    [m]
    Suppose we wanted to set the javaagent inside Gradle with Jib. Is there any way to unset/override this value? Normally, we set this with K8S, and we set up a ConfigMap with the value JAVA_TOOL_OPTIONS containing the -javaagent:/pathtoagent.jar in it. But I'm wondering if we put this into the image directly, I'm wondering if there is a way to override this if we happen to need it?
    seanleblancaticdtech
    @seanleblancaticdtech:matrix.org
    [m]
    Also, from the docs, it seems that arbitrary RUN commands are not supported (or recommended), but is there any way to get soft links to work?
    What I've found is that our APM agent gets updated quite frequently, and so, instead of having to update our codebase and our helm chart to include it, it would be nice to include it via our image build step - for example, the name of original jar: elastic-apm-agent-1.26.0.jar and point to it with a generic soft link like elastic-apm-agent.jar and refer to that for configuration in starting it up.
    seanleblancaticdtech
    @seanleblancaticdtech:matrix.org
    [m]
    Also, I'm taking that since this is not prioritized, that creating soft links in, say, src/main/jib is not supposed to do anything?
    Chanseok Oh
    @chanseokoh
    Let's have a discussion in a thread.
    15 replies
    seanleblancaticdtech
    @seanleblancaticdtech:matrix.org
    [m]
    If Jib ever added softlinks that'd be the ideal of course. are there any future plans to add that?
    Chanseok Oh
    @chanseokoh
    It's certainly a nice feature and still an open issue: https://github.com/GoogleContainerTools/jib/issues/1576#issuecomment-689608855 We don't have it in our current roadmap though. Contributions are highly welcome.
    1 reply
    abdalla-002
    @abdalla-002
    hello
    Pascal LIBENZI
    @pascal.libenzi_gitlab
    Hello! I would like to know if someone already used jib to build an ear package, I guess this is not really supported directly (and I really understand why), but I would like to know if there is another way that using jib to do the equivalent of docker COPY instruction of my ear file...
    Thanks a lot :)
    5 replies
    Sam Lightfoot
    @samlighty_twitter
    Hi guys - we want to have our GC logging write to a directory that isn't /tmp, but all other dirs cannot be written to due to permissions in the container. What's the typical way this would be handled? Is it possible to modify the permissions of a given directory to allow writing? Thanks