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
3
votes
1 answer

Building with JIB give Multiple valid main classes were found even though the mainClass is define

When building my service project with jib command mvn clean compile jib:build it's give the following error: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.0.2:build (build-image-and-tag-image) on project my-service: …
Chris
  • 1,080
  • 20
  • 44
3
votes
5 answers

Building docker images with Jib and Gitlab-CI

I am trying to create a pipeline where docker images are created using JIB (via a Maven Plugin) and pushed to my Gitlab Registry. This works fine locally as I am logged into my docker registry. com.google.cloud.tools
L. Cooper
  • 73
  • 2
  • 5
2
votes
2 answers

GitHub dependabot for a library inside a yml file

Introduction I'm currently working on a project that automatically containerizes a java project with JIB. GitHub project link. Problem The LIB library is implicitly used inside the YAML file, like this : - name: Build JIB container and publish…
ThrowsError
  • 1,169
  • 1
  • 11
  • 43
2
votes
1 answer

Is there any alternative of JIB for golang project, which creates the docker image withour using dockerfile

I want to create the docker image of golang project using cloud build.yaml but without using dockerfile. Is there any tool available for golang which is alternative of JIB which creates the docker image without using dockerfile.
Sneha
  • 233
  • 2
  • 13
2
votes
0 answers

Jib Maven Plugin: How to always pull base image before image build?

I'm using the Jib Maven plugin to build a container image, and have the following issue: sometimes the locally available base image (e.g. foo/bar/base/parent-image:latest) becomes older than the one available in the remote repository. Invoking…
t0r0X
  • 4,212
  • 1
  • 38
  • 34
2
votes
2 answers

dockerBuild fails resulting in an unsupported class file major version 61 error

I'm trying to build a docker image but I get an error telling me that the jib-maven-plugin failed. Resulting in an unsupported class file major version 61 error. At first I thought it had to do with the version of java I was using (Java 17). So I…
A.Vandijck
  • 59
  • 1
  • 8
2
votes
1 answer

Is there a way to extend or create different jib configuration in gradle.build file

I am using the jib plugin to build my docker image for my springboot app. However, I want to have a new task in my build file which will call a different build jib task. The reason for this is that depending on the task I create in gradle, I want to…
IsaacK
  • 1,178
  • 1
  • 19
  • 49
2
votes
0 answers

how to fill placeholders in application.yaml using jenkins secrets

I got 3 profiles for my application in application.yaml for dev local for build / test during jenkins build for deployment using docker and ConfigMap using JIB part one and three working ok, what I need to do is to fill my placeholders during test…
UnnameDSoS
  • 113
  • 1
  • 12
2
votes
1 answer

Google jib - Change owner of all files and folders

All the app files and extraDirectories are owned by root. /app/libs/ /app/resources/ /app/classes/ /app/logs I want to run the application as non-root user and i want these files/folders to be owned by that user only and not root. Is there any way…
user10916892
  • 825
  • 12
  • 33
2
votes
2 answers

Build Spring Boot fat JAR using JIB

I have a multi-modules project from which I build spring boot apps using Jib. I understood that fat JAR into container prevents building image efficiently (see) but one particular module needs to be packaged into a fat JAR file. As I would like to…
charlycou
  • 1,778
  • 13
  • 37
2
votes
1 answer

No Main Class found when running a dockerizing image

I have a university project which consist of building a Java Spring Boot application that can handle multiple APIs that can start new docker containers running jar applications. For the moment, I was able to experiment how Spring Boot works, so I…
N7Legend
  • 71
  • 9
2
votes
1 answer

JIB - Is it possible to see the dockerfile jib creates behind the scenes?

Is it possible to see the dockerfile jib creates behind the scenes ? If yes then where and how can i locate it ? Context - I am bit familiar with docker file and want to make sure the docker file that gets generated has everything required for my…
user10916892
  • 825
  • 12
  • 33
2
votes
2 answers

Jib - Google Container Registry: can't authenticate to the registry with error "Unable to parse json key"

I want to push my image to the container registry of google. The command I'm using is (executed via Gitlab Ci, variables are working, testing it one stage ahead): - mvn compile jib:build -Djib.to.image=$registry -Djib.to.auth.username=_json_key…
2
votes
3 answers

how to install curl for health check of spring boot jib docker image?

You define jib image in pom file, but I need curl command-line to be running on the container to do health check on aws ecs. How can I add curl into that image?
PainPoints
  • 461
  • 8
  • 20
2
votes
1 answer

Can jib be used without a repository?

The normal docker build command creates the image locally and does not do an automatic push to a registry. Is it possible to do the same with jib using the Gradle plugin?
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265