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
0
votes
1 answer

How to translate a dockerfile into a XML for jib plugin of Maven, specially the "RUN" and "HEALTHCHECK" part?

I have a dockerfile which is like: # openjdk:11-jre include 'wget' and 'curl', while openjdk:11-jre-slim does not FROM openjdk:11-jre ENV VERSION=2.28.1 ENV DIR=/home/wiremock ENV JAR=wiremock-jre8-standalone-$VERSION.jar ENV FULLPATH=$DIR/$JAR #…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
1 answer

Pull image from one registry in the cloud and push to another registry in the cloud

I'm attempting to utilize jib-core to build and push images programmatically. What I wish to achieve is to pull an image from one container cloud registry, and push it to another cloud registry. I believe the code should look something like: /* *…
AfternoonTiger
  • 357
  • 1
  • 4
  • 10
0
votes
1 answer

What is the difference between Jib and Jib-Core?

I was recently looking into Jib for my personal Java project I have been working on, but I just discovered something called Jib-Core. I went thru some of the documentation but I can't seem to figure out what the difference between them is, and when…
0
votes
2 answers

Can't package my Spring Boot application with Jib

I would like to package my Spring Boot application as a Docker container using Jib with Gradle. More Other than following Jib's readme, I have copied a sample from an simple JHipster project. Guess what? It didn't work. Okay, here is the…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
0
votes
1 answer

standard_init_linux.go:219: exec user process caused: exec format error ECR + Quarkus

Ok, I already know that there are many errors on SO, however I cannot find any that suits with my case. PREMISE: My environments is MacOS with M1. I have an EKS cluster with linux (amd64) as OS architecture on AWS. When trying to build and deploy my…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
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
0 answers

How can I specify a cacerts file in gradle jibDockerBuild?

I have a spring boot app from which I am making an https call to another application whose certificate I need to add to my cacerts in order for the connection to succeed. Otherwise, it throws the following Exception Caused by:…
horatius
  • 784
  • 1
  • 12
  • 30
0
votes
1 answer

Unable to use custom variables in Gradle extension

I'm using JIB (not super relevant) and I want to pass in variables from command line in my deployment script. I append using -PinputTag=${DOCKER_TAG} -PbuildEnv=nonprod in my gradle command, which is cool. But when it's missing, I want that ternary…
Ryan
  • 1,102
  • 1
  • 15
  • 30
0
votes
1 answer

Deploying Command Line Interface app using jib

Ok, I am building a jib based docker image which contains a java CLI app. The application is run like this : java -jar app.jar --opt1= what i want to do is run a docker container which does nothing when the container is started but can…
500865
  • 6,920
  • 7
  • 44
  • 87
0
votes
2 answers

How to use the gradle jib plugin to push an image to the google cloud Container Registry

How to use the gradle jib plugin to push an image to the google cloud Container Registry I am trying to deploy a simple Spring-Boot application and deploy it using google cloud and the Google Kubernetes Engine (GKE). I am also following the…
Rob Schwartz
  • 192
  • 1
  • 12
0
votes
1 answer

Containerize Docker images to specific local directory using Jib-Core

I'm asking some help to create local Docker images using jib-core. I know how to push the image to a DockerHub Repo but now I want to get all the images into a local single repository. What I've done so far: By reading the jib-core doc,…
N7Legend
  • 71
  • 9
0
votes
1 answer

jib: Invalid volume path when creating docker image using jib

I am using jib to build my spring boot war file for tomcat. I am using a local tomcat docker image. I use gradle jibDockerBuild --stacktrace and i get the following error: caused by:…
user518066
  • 1,277
  • 3
  • 23
  • 35
0
votes
2 answers

How to configure a standard path in a container created by Jib

I have a standard Sprinb Boot project. And in the folder: src/main/resources/tmp/my_file.json, i have a json that I read in my Java code. File file = new File("src/main/resources/tmp/my_file.json"); When running it locally it goes perfectly With…
Jose
  • 1,779
  • 4
  • 26
  • 50
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: set repository depending on maven profile

I have an app where I want to push to repository A or B depending on the profile that is being run. For instance: If I run this in Jenkins sh "./mvnw package -Pint verify -DskipTests jib:dockerBuild" it should push to our integration registry. If I…
Alejandro
  • 766
  • 9
  • 24