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

Why jib dockerBuild plugin fails to connect

I was trying to build the docker image for a project I'm working onto. It's based on jhipster, after configuring the project it tells me to run the following maven command: ./mvnw -ntp -Pprod verify jib:dockerBuild Unfortunately it doesn't seem to…
funder7
  • 1,622
  • 17
  • 30
3
votes
2 answers

Docker Image created by Google JIB did not include asciidoc of spring rest docs

I use Spring Rest Docs and JIB When i do ./gradlew build and java -jar /some/build/libs/app.jar. I can get api documents generated by spring rest docs at example.com/docs/asciidocname.html. but docker image with ./gradlew jib does not contain this…
labyu
  • 43
  • 5
3
votes
3 answers

Records requires ASM8

I want to play around with the newest Java 15 with preview features. I'm using Spring Boot 2.4.0-M2 and Gradle 6.7-rc2, where both of them support Java 15 features. I want to build a docker image from my project using jib. Here's my jib…
Forin
  • 1,549
  • 2
  • 20
  • 44
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
3
votes
1 answer

Can’t push to Gitlab registry | Quarkus - Jib build

I'm currently developing Quarkus applications and need therefore a CI Pipeline + Container Registry. As containerization through docker isn't working (docker daemon - priviliged mode) I want to use Jib, which is already supported by Quarkus. Command…
3
votes
1 answer

Is there a way to customize the owner of extraDirectories added by jib?

We're trying to add extraDirectories using jib to add a couple app-specific files, but we'd prefer the files to be owned by a user that exists in the base image, and not owned by root. We need the files to be writable by the user, but don't want…
TREE
  • 1,292
  • 2
  • 12
  • 21
3
votes
1 answer

Extract POM version, for a job from Github Actions

I am trying to test with Github Actions to build my docker container automatically. In my POM, the version of the docker image that I create with JIB, I extract it from the version of my…
Jose
  • 1,779
  • 4
  • 26
  • 50
3
votes
2 answers

Can you install command-line packages in jib docker image?

I need to install command line tools like jq, curl etc in the docker image created by maven jib plugin. How can I achieve this? Any help would be greatly appreciated. Thanks.
PainPoints
  • 461
  • 8
  • 20
3
votes
2 answers

Gradle as non root

Could you please let me know how to run a gradle image (pulled from docker repository), with jib plugin and running as non-root user in Kubernetes pod? I have build a gradle image using Gradle 4.6. I’m using this image in my Kubernetes pod. When I…
testbg testbg
  • 193
  • 2
  • 11
3
votes
2 answers

Can't connect to the docker daemon while running Maven jib plugin in Gitlab CI

I'm trying to build a docker image with my application in Gitlab continuous integration using the jib Maven plugin, but I can't get the plugin connect to the docker daemon using the dind (docker-in-docker) service. Currently I'm using this…
Aritz
  • 30,971
  • 16
  • 136
  • 217
3
votes
1 answer

Problem with using jib maven plugin offline for building docker container

I'm following Spring Boot Docker Tutorial from here. I got the exact result while having an internet connection. Now I need to produce the same result in an environment without an internet connection. I copied maven repositories and docker image…
mbaydar
  • 1,144
  • 1
  • 13
  • 18
3
votes
1 answer

Jib-Maven-plugin with Jenkins scripted pipeline: how to log in to private docker registry?

Regarding this problem, I updated my JHipster-Application with scripted Jenkins pipeline and have now in Jenkinsfile (partly following these hints): [...] def dockerImage withEnv(["DOCKER_CREDS=credentials('myregistry-login')"]) { …
Jochen Haßfurter
  • 875
  • 2
  • 13
  • 27
3
votes
1 answer

How can I configure the Jib Extension inside a buildSrc kotlin file?

I'm trying to modularize my build.gradle.kts. It was suggested to me to create a buildSrc folder. After some research and som asking I found this article I hated Gradle!... so this was my try: buildSrc tree: buildSrc/ ├── build.gradle.kts ├──…
FRodrigues
  • 33
  • 4
3
votes
1 answer

Maven Jib plugin: 401 Unauthorized

I am using Maven Jib plugin to deploy my application to Gitlab docker registry. If I use docker login registry.gitlab.com and enter username and password I can log in to the gitlab registry successfully. I can see that ~/.docker/config.json contains…
Ali
  • 1,759
  • 2
  • 32
  • 69
3
votes
1 answer

Sanitize version for docker image versioning. nebula.release

I have a pipeline to build a Docker image in every push to specific branches in my git repository. The problem is that semantic versioning is using '+' character to specifying the metadata section in the version name. I need to replace this char for…
earandap
  • 1,446
  • 1
  • 13
  • 22
1 2
3
14 15