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
0 answers

Why don't I pull the JVM Basic Image when i use quarkus.jib?

Environment: Quarkus version:2.4.1.Final maven: Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: D:\ttdl\03-software\maven\apache-maven-3.8.4 Java version: 11.0.7, vendor: Huawei Technologies Co., Ltd, runtime:…
0
votes
0 answers

Different image name per goal in jib-maven

I would like to have different image names per jib goal, but it seems like jib is not picking up the goal configuration, only uses the global one. Here is my pom snippet:
TeeBea
  • 74
  • 7
0
votes
0 answers

Gradle Jib : Additional build artifacts generated by Jib

I have a SpringBoot(2.6.2)/Gradle(7.3.3) application. I am using Jib(3.1.4) to create the docker image. After the image is created and pushed to the registry (successfully), my build would fail with this error - java.nio.file.NoSuchFileException:…
Do Will
  • 711
  • 1
  • 9
  • 18
0
votes
1 answer

Adding prometheus jmx agent jar to JIB build

I need to add the "jmx_prometheus_javaagent" jar to JIB build but I get the following error when I deploy the application: Error opening zip file or JAR manifest missing : /srv/jmx_prometheus_javaagent-0.16.1.jar Error occurred during initialization…
rishav
  • 441
  • 9
  • 27
0
votes
1 answer

how to package a custom Jar task with JIB?

I'm using Jib to Containerize the output of some Gradle Jar tasks. This works fine for default Jar task. My issue is we have a custom Jar task hooked into our build process e.g. tasks.register('myOtherJarTask',jar){ //do stuff, triggered by…
RoRo88
  • 306
  • 1
  • 4
  • 14
0
votes
2 answers

Maven jib:dockerBuild fails for non-root user on Ubuntu (and in Windows wsl2 as well)

Update: I removed Docker entirely by following this link: https://askubuntu.com/a/1021506 I then reinstalled Docker like this: https://docs.docker.com/engine/install/ubuntu/ Right after the reinstall, mvn jib:dockerBuild worked without sudo. When…
Roar S.
  • 8,103
  • 1
  • 15
  • 37
0
votes
1 answer

Integration with JIB Gradle cause compilation error

Tring to integrate with JIB (Containerize your Gradle Java project) with my Java project. Following this documentation: https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin Added the following to my project: dependencies { …
igor
  • 716
  • 1
  • 9
  • 27
0
votes
1 answer

Pass parameters to my application in a image done with JIB

I would like to optimize my docker image using jib. I have been using a Dockerfile like this: FROM openjdk:8-jdk ARG NAME ADD $NAME app.jar VOLUME /tmp VOLUME /certificates ENTRYPOINT exec java $JAVA_OPTIONS -jar app.jar Now I am creating the…
antonof
  • 109
  • 1
  • 8
0
votes
1 answer

Injecting plugin/runtimeOnly configuration(s) from one module to another module (within the same project) in gradle multi module project

I am referring to my post here :Moving Jib configuration of one module into a new module, to refactor multi-module gradle project With the same refactoring goal of keeping jib related configuration in a separate module, I want to inject some…
Santi
  • 67
  • 7
0
votes
1 answer

Moving Jib configuration of one module into a new module, to refactor multi-module gradle project

I have a multi-module gradle project and one of the modules is a webapp. I added Jib configuration within the webapp build.gradle file to generate the container images. Similarly I have a few modules for command-line applications and I use Jib jar…
Santi
  • 67
  • 7
0
votes
1 answer

Building docker image locally with Jib

I am trying to build docker image locally with Jib for project but am stuck at this issue. Can some one help me to find the solution? This is the plugin i used in pom.xml com.google.cloud.tools
0
votes
1 answer

jib-maven-plugin I/O error for image [registry-1.docker.io/library/adoptopenjdk]

I have developed a Dockerized Spring Boot Application using as base image AdoptOpenJDK and using jib-maven-plugin. My plugin configuration is: com.google.cloud.tools
Jose A. Matarán
  • 1,044
  • 3
  • 13
  • 33
0
votes
1 answer

java agent fails to start with jib created image for a springboot app. [agent library failed to init: instrument]

I have a spring-boot project with the following structure I am using gradle and using the jib plugin to build my docker image. jib plugin version: id 'com.google.cloud.tools.jib' version '3.1.2' I am using the jib plugin to copy all contents of…
IsaacK
  • 1,178
  • 1
  • 19
  • 49
0
votes
1 answer

Is there any way to use JIB only for creating a docker image from the given jar?

Jib handles all steps of packaging (handles compilation, verification and building the project) your application into a container. However I want to build the jar separately and and provide this jar as a input to JIB to create a docker image and…
Priyanka
  • 13
  • 5
0
votes
1 answer

Is there anyway to override the 'main' sourceset for jib?

For my java plugin I'm using a non-default sourceset. How do I tell jib that's where my source files are? With my gradle file as shown below jib responds with: > Task :jib FAILED No classes files were found - did you compile your project? I see…
ray
  • 61
  • 6