Questions tagged [maven-jib]

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

Google Jib - Is it possible to run a linux command at container startup using CMD/ENTRYPOINT?

Is it possible to run a linux command whenever container starts from jib image using cmd or entrypoint or any other mechanism in jib maven plugin and then start the java process ? In my case i want to run this command: echo "127.0.0.1 $HOSTNAME" >>…
user10916892
  • 825
  • 12
  • 33
3
votes
1 answer

gcr.io/distroless/java:11 use base version from 11:.0.6 to 11.0.8

Changing minor version in distroless java docker image . Current java project uses maven jib to build the docker images. The default version of docker image is java 11. The minor java version of this docker image is set to 11.0.6. How to change java…
Snt
  • 41
  • 1
  • 9
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
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
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
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
1 answer

Specifying -Djava.library.path in JIB plugin

I am trying to run the JIB plugin using below configuration in pom.xml {artifactory-location}/container-release/managedbaseimages/oracle-jdk:11-stable
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
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
2 3