Questions tagged [jib]

Jib is a container image builder that handles all the steps of packaging your application into a container image.

Jib is a container image builder that handles all the steps of packaging your application into a container image. (https://github.com/GoogleContainerTools/jib)

213 questions
0
votes
1 answer

jib gradle plugin + static docker client: cannot build image due to permission error: layer.tar: A required privilege is not held by the client

I want to build Docker image with jib Gradle plugin in Windows, and use a Windows docker client to load it into my WSL 2 container running dockerd, and use WSL 2 as server. Resource-wise I think this is the lightest solution. . On WSL 2 side, I run…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
1 answer

JHipster - Java build not compatible with the base image - jib

I run a Docker image build command of a JHispter app ./mvnw package -Pprod verify jib:build that yields an error: Your project is using Java 17 but the base image is for Java 11, perhaps you should configure a Java 17-compatible base image using…
vic
  • 2,548
  • 9
  • 44
  • 74
0
votes
1 answer

JIB is not able to detect docker credentials

I am building a generated app whith Jhipster. I run the command to build the images and run the app containerized. I started Docker Desktop on windows 11. To remind, this is the command: ./gradlew -Pprod bootJar jib The output after a while is…
Houssam Badri
  • 2,441
  • 3
  • 29
  • 60
0
votes
0 answers

Docker build and push using JIB takes a really long time

I am using Jib plugin in maven to build and push image to a Docker private registry. But it takes a really long time to build and push image for infinite time. The base image is 500 MB size. How can I reduce build time?
Erfankam
  • 380
  • 5
  • 15
0
votes
2 answers

Flowable Pipeline to Azure Container Registry: "aad access token with sp failed client id must be guid"

I have a Azure Devops Pipeline where i want to build the flowable docker images. The pipeline looks like this: steps: - script: | curl -L https://aka.ms/acr/installaad/bash | /bin/bash displayName: 'Install ACR Helper' - task: AzureCLI@2 …
erbg
  • 316
  • 2
  • 8
0
votes
1 answer

Integrating Google jib with yGuard

Is there a way to obfuscate exploded/packaged output of jib-maven-plugin with yGuard (or some other obfuscator)? I can think of a way using other tools such as exec-maven-plugin + jib cli. Another possible way can be to devise a 3rd party…
downvoteit
  • 588
  • 2
  • 7
  • 12
0
votes
0 answers

Error while building docker image using jib

I am using mvnw -Pprod verify jib:dockerBuild to build the docker image for my jHipster project and I am getting: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.2.1:dockerBuild (default-cli)Build to Docker daemon failed, perhaps…
Rithu
  • 79
  • 1
  • 6
0
votes
1 answer

How to setup Jib container to authenticate with docker remote registry to pull images?

Hi using Quarkus with Jib extension and setting: quarkus.jib.base-jvm-image=azul/zulu-openjdk-alpine:11 The build fails with the below error. I'm on Mac OS X, with Docker Desktop. This seems to have happened after updating Docker Desktop Running…
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
1 answer

jib authentication not working when use docker

I logged in to docker normally, and the authentication information was also checked, but the jib build fails. docker login cat ~/.docker/config.json { "auths": { "https://index.docker.io/v1/": {} }, "credsStore":…
user19011807
0
votes
1 answer

How to add additional libc dependencies to Quarkus Jib image?

I'm trying to run the YourKit agent inside the container. But when I run my application I get: Could not find agent library /home/jboss/app/libyjpagent.so in absolute path, with error: libc.musl-x86_64.so.1: cannot open shared object file: No such…
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
1 answer

How to set heap size for Quarkus app using Jib container image?

I'm Quarkus 1.11.0 and trying to set the heap size of my app using... quarkus.jib.jvm-arguments=-Xms1024m -Xmx1024m -agentpath:/app/resources/libyjpagent.so=listen=all also tried with capital M and I get Invalid initial heap size and the app…
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
0 answers

how to maven script to gradle?

I've been researching the script for a day, but gradle doesn't have enough documentation to find an answer. Any help would be appreciated. this is pom.xml build-docker-image
majava
  • 45
  • 9
0
votes
1 answer

Jib is always executed on a Gradle multi-project

We have a multi-project structure with Gradle as a build tool. The problem is that the jib extension is executed even when we do a: ./gradlew :A:jar So we try to surround it with a custom task: task doJib { doLast { jib { from …
FrankS77
  • 271
  • 4
  • 17
0
votes
1 answer

503 from server: Service Unavailable: Back-end server is at capacity

I'm trying to build a jib based container with gradle. I'm getting a 503 error when it tries to GET an xml file from jfrog.org. + eval set -- '"-Xmx64m"' '"-Xms64m"' '"-Xdock:name=Gradle"'…
joel3000
  • 1,249
  • 11
  • 22
0
votes
1 answer

jib - customized entrypoint can only remove classes at runtime, but will fail 3pp vulnerability check before deployment

I am using Jib to pull a base image, add my wrapper java code to it, and build my image on top of that. Due to the widely known log4j CVE in December 2021, we are looking for a way to remove the vulnerable classes. (Now more CVEs are found in 2022,…
WesternGun
  • 11,303
  • 6
  • 88
  • 157