Questions tagged [maven-jib]
40 questions
0
votes
1 answer
jib - customized entrypoint can only remove classes at runtime, but will fail 3pp vulnerability check before deployment
I am using Jib to pull a base image, add my wrapper java code to it, and build my image on top of that. Due to the widely known log4j CVE in December 2021, we are looking for a way to remove the vulnerable classes. (Now more CVEs are found in 2022,…

WesternGun
- 11,303
- 6
- 88
- 157
0
votes
0 answers
Remove some class file from all jars packaged in tar(each tar is a layer of a docker image)
OK so I know how to remove class files from all the jars under a dir. But, now I have different layer from a docker image, each layer is a tar file, and in the tar file there are the jar files.
Can I remove the class files from the jar files,…

WesternGun
- 11,303
- 6
- 88
- 157
0
votes
2 answers
Maven jib:dockerBuild fails for non-root user on Ubuntu (and in Windows wsl2 as well)
Update: I removed Docker entirely by following this link:
https://askubuntu.com/a/1021506
I then reinstalled Docker like this:
https://docs.docker.com/engine/install/ubuntu/
Right after the reinstall, mvn jib:dockerBuild worked without sudo.
When…

Roar S.
- 8,103
- 1
- 15
- 37
0
votes
1 answer
ClassNotFoundException - when building the image & push it to GCR using jib-maven-plugin in BitBucket pipeline
I am getting the below error in my GCP Cloud Run service:
Error: Could not find or load main class com.sdas.demo.sd.Application
Caused by: java.lang.ClassNotFoundException: com.sdas.demo.sd.Application
What I was doing:
I have a spring boot…

Soumik Das
- 156
- 11
0
votes
1 answer
jib-maven-plugin I/O error for image [registry-1.docker.io/library/adoptopenjdk]
I have developed a Dockerized Spring Boot Application using as base image AdoptOpenJDK and using jib-maven-plugin.
My plugin configuration is:
com.google.cloud.tools
…

Jose A. Matarán
- 1,044
- 3
- 13
- 33
0
votes
1 answer
jib-maven-plugin - How to set folder permission
I'm trying to build docker image using jib-maven-plugin, I want to set permission for specific folder.
If I am using docker file, the configuration will look below :
FROM xxxxxxxx.com/sandbox/gui-server:1.0.0-SNAPSHOT
USER root
RUN chmod 755…

Muhaimin Aiman
- 77
- 5
- 9
0
votes
1 answer
Jhipster docker image is not working and in logs it is giving multiple warning related to plugin
I am using latest Jhipster version 7.0.1 and java version 'Adoptopenjdk:11.0.11'.
Trying to dockerize generated project but every time image is created in docker but is is not accessible. Unable to up created server image.
Getting below logs in…

Rtj
- 1
- 3
0
votes
1 answer
Build docker image using mvn and jib through a proxy
I'm running this command to build docker image using maven and jib
mvn compile jib:dockerBuild -Djib.to.image="$IMAGE_NAME"
this command works perfectly fine on my machine since it's going to download some stuff from the internet, however, it's not…

SlimenTN
- 3,383
- 7
- 31
- 78
0
votes
3 answers
Communication issue between Spring Boot application (JHipster) and Keycloak through HTTPS
In my team, we're trying to deploy a microservice stack based on JHipster (6.8.0) on OpenShift (4.2).
We have currently an issue when the gateway starts and tries to communicate with Keycloak through HTTPS (using Red Hat Single Sign On 7.3 based on…

Ajrarn
- 48
- 1
- 7
0
votes
1 answer
Jib maven plugn is not able to push image from local to DockerHub
I have simple Spring Boot app. I tried to create an docker image of it using jib-maven plugin. But when I build this app its failing with 401 Unauthorized exception. But I am giving all the configurations correctly in logs I can see its been read…

springbootlearner
- 1,220
- 4
- 26
- 48