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
19
votes
5 answers

How to build the docker image using jib-maven-plugin, but not push by default?

I have a simple SpringBoot application and I want to build docker image using Jib Maven plugin. Following is my plugin configuration: com.google.cloud.tools jib-maven-plugin
K. Siva Prasad Reddy
  • 11,786
  • 12
  • 68
  • 95
17
votes
3 answers

Jib - How to use environmental variables from base image

I have a base java image with some pre defined java_opts as a environmental variable. How can I use them in plugin? com.google.cloud.tools
MaciejF
  • 516
  • 1
  • 6
  • 16
10
votes
3 answers

What is the difference between spring-boot:build-image vs jib?

Spring Boot 2.3.x adds the capability of building a Docker image using their plugin via spring-boot:build-image. Jib seems to allow the same functionality but is not limited to Spring boot. Is there any specific optimizations that Spring Boot…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
10
votes
4 answers

Equivalent of Google's JIB for Node.JS?

Is there one equivalent of Google's JIB or BuildPacks for Node.JS ? It is my understanding that JIB allows to build OCI container images from within the project's build tool like Gradle or Maven, as a developer we only have to include a plugin into…
Luis Trigueiros
  • 636
  • 7
  • 21
8
votes
1 answer

How to create docker-compose.yml file while using jib?

I use jib plugin to create image, while docker-compose needs Dockerfile. How can i Link already made image by jib to my docker-compose so it can build my backend in process?
giliermo
  • 141
  • 1
  • 8
8
votes
1 answer

Adding SSL certificate in Distroless Image(Java Application)

I have a Java application containerized (docker) based on Distroless and I would like to add an SSL certificate in JVM's store. I see an option like using Docker's RUN command to import the SSL certificate into JVM store using Java keytool option,…
Haran
  • 1,040
  • 2
  • 13
  • 26
7
votes
2 answers

Multiple tags for a Docker image built by Google Jib and Maven?

Using the jib-maven-plugin I'd like to build an image with mulitple tags. While mvn jib:build basically works fine, it "only" tags the image with latest. My Maven pom.xml defines the following: com.google.cloud.tools
Robert Strauch
  • 12,055
  • 24
  • 120
  • 192
7
votes
1 answer

Docker CMD or RUN using JIB build

I need to create a custom image based on Ubuntu that contains software that I need to install using apt. For example: sudo apt-get install pcscd sudo apt-get install pcsc-tools # same as pcsc-lite # For OMNIKEY for driver Then unpack the file…
Average Bear
  • 191
  • 1
  • 3
  • 13
7
votes
1 answer

How do I create a directory inside container with JIB?

I am trying to specify a mount point in a kubernetes deployment descriptor and for that I need there to be a directory volumeMounts: - name: volume-mount mountPath: /dev/bus/usb/003/005 to correspond to: volumes: -…
Average Bear
  • 191
  • 1
  • 3
  • 13
6
votes
9 answers

401 Unauthorized when using jib to create docker image

I am on windows and this is the plugin configuration: com.google.cloud.tools jib-maven-plugin 3.2.1
Davide _-
  • 63
  • 1
  • 5
6
votes
1 answer

Why Jib dropped support for distroless base image?

It looks like starting with Jib 3.0; you no longer have default distroless images for your Java applications. Instead, you will get an adoptOpenjdk base image if you don't specify one. You still can configure and use distroless base images as per…
ashish
  • 63
  • 1
  • 1
  • 9
6
votes
1 answer

How does the Jib maven plugin build images without using a docker daemon?

For the past few months I have been experimenting with docker and have enjoyed the benefits of building and running java applications inside containers. A few weeks ago I stumbled upon the jib maven plugin and noticed that jib can build images to…
S.Tushinov
  • 548
  • 5
  • 13
6
votes
2 answers

Jib: how to use amazon-ecr-credential-helper without installing it?

When using jib-gradle-plugin to build and push to AWS ECR, it requires me to install aws ecr credential helper otherwise the build complains "The system does not have docker-credential-ecr-login CLI". I am wondering if there is a way to push to AWS…
Xinchao
  • 2,929
  • 1
  • 24
  • 39
6
votes
1 answer

Adding SSL certificate when using Google Jib and Kubernetes

So I'm trying to add an ssl certificate for my project, on my local machine I was able to add it by simply following a keytool command and then it worked. But when I try to do the same on the machine that has my k8s cluster, it doesn't seem to work…
Ali_Nass
  • 838
  • 1
  • 9
  • 27
6
votes
1 answer

How do I pass Jenkins credentials to gradle?

I'm using the jib Gradle plugin to create a docker image and push it to the Azure Container Registry. I've added username/password credentials to Jenkins so far and need to pass them to Gradle. Accessing or passing the credentials to Gradle, they…
ndueck
  • 713
  • 1
  • 8
  • 27
1
2 3
14 15