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
2
votes
2 answers

Rebuilding containers when needed

An application container has generally three parts: The base image that, in Linux case, contains the core POSIX tools and system libraries (e.g. FROM debian:stable) The runtime libraries or helper tools usually installed from some kind of package…
Jan Hudec
  • 73,652
  • 13
  • 125
  • 172
2
votes
1 answer

Optimizing image storage in Docker repository using Jib for Spring Boot

Does using Jib to build Docker images help optimize remote Docker repository storage? We are using Spring Boot in Docker with Gradle. Currently, we are creating standard fat Boot jars with all the dependencies packed inside, and then we create an…
wujek
  • 10,112
  • 12
  • 52
  • 88
2
votes
1 answer

Spring boot external config in a docker environment: application.yml does not exist

Before start explaining my issue, it's worth mentioning that although I am trying to work how to use Maven Jib plugin in conjunction with Spring Boot and Kubernetes, the issue is the same even if I try to use a normal docker. I have used Kubernetes…
Ali
  • 1,759
  • 2
  • 32
  • 69
2
votes
4 answers

How to properly dockerize maven project with jib

I have a Spring Boot maven app, which I need to dockerize using jib plugin, and send to azure container registry The registry is set up and ready, including the username, password, etc... My pom.xml looks like this:
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
2
votes
1 answer

Jib plugin not able to access project.version as updated by another Gradle plugin

I have my build.gradle setup as follows (listing only plugins for brevity) plugins { id 'java' id 'maven-publish' id 'signing' id 'org.springframework.boot' version '2.2.2.RELEASE' id 'io.spring.dependency-management' version…
Rishabh
  • 380
  • 4
  • 14
2
votes
2 answers

How to pass credentials for jenkins to push a docker image to my own registry?

JHipster now uses the maven-jib-plugin. Before that, my jenkins server running in a docker-container was able to build a docker image with the *.war-file and push it to my own docker-registry with a pipeline using a 'Jenkinsfile' (for gradle, but I…
Jochen Haßfurter
  • 875
  • 2
  • 13
  • 27
2
votes
1 answer

Failure on Push to Docker Registry using 'mvn compile jib:build '

I'm trying to build and deploy my docker image to a private registry using Google JIB maven plugin. However, it fails with issues accessing the private registry. I have installed Docker Desktop v19.03.1 on my Windows 10 machine. Next I'm trying to…
2
votes
1 answer

ClassNotFoundException when Dockerizing a spring boot application

I dockerized a spring boot application with Jib. When I run the docker image, I get this error. Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper at java.lang.Class.getDeclaredMethods0(Native Method) at…
nirvair
  • 4,001
  • 10
  • 51
  • 85
2
votes
1 answer

Using jib-gradle-plugin to build multi project Dropwizard app

I have a gradle project I'd like to build using jib. The project contains subprojects arranged like so: root | |build.gradle.kts |settings.gradle.kts |web/ |build.gradle.kts |src/ |main/ |java....(etc) …
Mustafa Shabib
  • 798
  • 12
  • 35
2
votes
1 answer

Maven multi-project build with API modules does not seem to include project-level dependencies in build image

Hello I have a springboot multi-project maven build which builds multiple images. The structure is similar to: - project-parent - common - project-b-parent - project-b-api - project-b-gateway - project-b-launcher -…
L. Cooper
  • 73
  • 2
  • 5
2
votes
1 answer

Pull, Tag and Push an Image from Registry Y to Registry X

Currently, our CI/CD Environment is cloud based in Kubernetes. Kubernetes Cloud Providers recently removed the docker deamon, due to performance advantages. For example Google Kubernetes Engine or IBM Cloud Kubernetes only feature an Containerd…
2
votes
1 answer

How to make a host file available inside a container using Maven Jib plugin

I am building a container using Jib's Maven plugin. I have a file called /tmp/folder/file.json on my host machine, which I need to be able to read from inside a container. I tried to mount /tmp/folder using the volumes feature:
daphshez
  • 9,272
  • 11
  • 47
  • 65
2
votes
4 answers

Dockerizing multi module Spring Boot application using JIB plugin

I have a Spring boot Application and using spotify plugin to Dockerize my application.So, I will have a Dockerfile like the below one. FROM jdk1.8:latest RUN mkdir -p /opt/servie COPY target/service.war /opt/service ENV JAVA_OPTS="" \ …
user1578872
  • 7,808
  • 29
  • 108
  • 206
1
vote
1 answer

How can I pass a gradle property to jib via skaffold

I have a gradle build file with the following jib definition: def baseImage = 'ghcr.io/tobias-neubert/eclipse-temurin:17.0.2_8-jre' jib { from { image = baseImage auth { username = githubUser password = githubPassword } …
Tobias Neubert
  • 141
  • 1
  • 10
1
vote
0 answers

Build containers with Jib only if an artifact has been updated

Context: I have a monorepo that contains several projects. They are built with Gradle. Currently they are packed as OCI containers using Docker in an additional pipeline step. Goal: I want to use Jib inside Gradle's incremental build to construct…
DVA
  • 33
  • 5