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
1
vote
1 answer

jib-maven-plugin: How to solve running extension error

I had an error about jib-maven-plugin when mvn verify is run on gitlab, it throws an error saying; error running extension 'com.google.cloud.tools.jib.plugins.extension.NullExtension': extension configured but not discovered on Jib runtime…
Tren wilki
  • 21
  • 3
1
vote
0 answers

How to provide a list of objects as CLI parameter to Jib?

I have multiple Java Applications that depend on the directory config/ at the root of each repository. When building images of these apps with jib-maven-plugin, Jib does not copy this directory by default. Specifying extraDirectories works when…
malte.h
  • 73
  • 1
  • 7
1
vote
1 answer

Google Jib with docker-compose application, Fast way to restart application after rebuild image to Docker daemon

I Am using com.google.cloud.tools.jib version 3.2.1 in my spring boot Gradle build file. The repo I am working with has to be run in a docker-compose application as it will only work if there are other services sharing info with it. Am updating the…
George
  • 2,292
  • 2
  • 10
  • 21
1
vote
1 answer

Building a multi module maven project with Skaffold and Jib

Is it possible to build a multi module maven project with skaffold and jib builder? My project structure: my-project-parent-module - my-project-main-module - my-project-lib-module my-project-main-module contains the Main class, and has the jib…
1
vote
1 answer

Using Jib Maven Plugin to pull as base image an windows nanoserver eclipse-temurin:8 gives error blob unknown to registry

I am trying to containerize and create an image of my spring boot app using Jib. The requirement is that it should run on an windows container thus my base image is…
Alex998
  • 23
  • 3
1
vote
0 answers

Maven Release Plugin: Passing arguments to jib via command line does not work

I migrated from Maven Release Plugin 2.5.1 to 3.0.0-M5. I added jib:build as goal of release:perform. Using version 2.5.1 I had no problem to pass arguments via -Darguments="-Djib.to.image=image -Djib.to.auth.username=username…
TheTodler
  • 11
  • 3
1
vote
1 answer

Jib Main class error with spring boot multi module (gradle)

root-projec ㄴ sub1-project build.gradle ㄴ sub2-project build.gradle build.gradle I'm trying to build all subprojects as jibs in the root project. The following script is the build.gradle file of the root and sub modules. ... jib { from { …
majava
  • 45
  • 9
1
vote
1 answer

Extending/reusing the classpath file of the base image created using Jib?

I created a base image for a Java application using Jib which I want to extend using Jib. (The Java application provides extensibility by loading additional Jars from the classpath) In the extending gradle project, I did this: jib { .... …
Santi
  • 67
  • 7
1
vote
3 answers

How to decide Quarkus application arguments in Kubernetes at run-time?

I've built a Quarkus 2.7.1 console application using picocli that includes several subcommands. I'd like to be able to run this application within a Kubernetes cluster and decide its arguments at run-time. This is so that I can use the same…
1
vote
1 answer

GitHub Actions: Error 401 Unauthorized in JIB maven plugin

Introduction I am currently to create a composite GitHub Actions that build a container from Java project with JIB and publish it automatically to a GitHub Packages and Maven Central. Problematic But I got this error when I try to run it: [INFO]…
ThrowsError
  • 1,169
  • 1
  • 11
  • 43
1
vote
1 answer

jib gradle plugin does't run tests

I have a skaffold + jib + jib-maven-plugin setup that I use for development. I run skaffold dev and it builds the project, container image and deploys to my local k8s cluster. Whenever I touch the source code it rebuilds and redeploys containers.…
artur
  • 1,710
  • 1
  • 13
  • 28
1
vote
1 answer

Jib create folder for temporary files and changing folder ownership

I want to create temporary files in my spring boot application. I build images using JIB and deploy them in kubernetes. When I tried to create temporary files I received an error because container was started by non root user. Now I'm looking for…
NikMashei
  • 371
  • 1
  • 7
  • 19
1
vote
1 answer

Skaffold cannot pull image from Harbor

Expected behavior Skaffold should pull the image from insecure Harbor registry running on HTTP. I have tried everything from these docs: https://skaffold.dev/docs/environment/image-registries/#insecure-image-registries but without success. Actual…
Bit Wise
  • 29
  • 4
1
vote
1 answer

How do I remove a directory inside container with JIB?

If it is a docker file, I want to remove the directory by executing the following command. RUN rm /usr/bin/wget How can I do it? any help is appreciated
1
vote
1 answer

Building docker image for multi module project pushing jars to classpath

I am trying to create docker image for my project which is having multiple modules. The need is to build the image in such a way that the image should contain the child module jar in a given classpath. The structure of my project is parent_project …
Ashit_Kumar
  • 601
  • 2
  • 10
  • 28