All Questions
477
questions
0
votes
0
answers
22
views
How to customize docker packaged using gradle bootBuildImage
version:
spring-boot: 3.3.0
jdk: 21
gradle: 8.6
I have a springboot application that I intend to use docker for containerized deployments (mainly for runtime management).
It uses the logback logging ...
0
votes
0
answers
21
views
Flyway custom migration in gradle
I have two docker container for two databases: One for production, one for testing.
I want the testing database container to be migrated with my flyway migrations of production to get the exact same ...
0
votes
0
answers
31
views
Docker container failing to build in GitHub Actions, but it builds on my local machine Ubuntu 24.04
I am trying to build and run a containerized Spring server in a GitHub Actions pipeline. The end goal is to have the backend and frontend both running in the pipeline, so that our Cypress tests can ...
0
votes
0
answers
70
views
Use gradle.properties as docker build secret to access from build.gradle
Consider this Dockerfile:
FROM openjdk:17
COPY . .
EXPOSE 8999
RUN ./gradlew build
CMD java -jar -Dspring.profiles.active=local build/libs/example.jar
I can build this without problems with:
docker ...
0
votes
0
answers
44
views
Issue in docker run projects (Could not find or load main class MainKt)
I have two folders
my-app (react app)
shopBacked (Kotlin project create using intellij)
I want to create my projects using docker. I created 3 files: Dockerfile in my-app to run react app, Dockerfile ...
0
votes
0
answers
13
views
Gradle and Docker: How to run a gradle build inside Docker?
I have following Dockerfile.When I push the code into git remote, docker build stage with gradle gave me following error:
Execution failed for task ':compileJava'.
> Could not resolve all ...
0
votes
1
answer
208
views
Dockerfile for gradle, spring boot application using multi-stage
I have spring-boot micro service project. I dockerize it. bootBuildImage command run. When i run docker compose up command for spring boot project. I have spring-boot micro service project. I ...
0
votes
0
answers
83
views
ContainerLaunchException: Aborting attempt to link to container
I have written a functional tests which uses mock containers using TestContainers.
When I am running a complete application test using ./gradlew clean build, still the error appears in console but ...
0
votes
1
answer
355
views
How to make gradle jdk docker image accept Self-Signed SSL certificate
I am building a springboot app using gradle for dependency management and docker compose for my CI pipeline. My workbox is running MacOS Ventura
When I attempt to build the application locally with a ...
-1
votes
1
answer
175
views
Unable to build Spring Boot Application with Testcontainers using Nix due to Docker build time dependency
I can't get a basic Spring Boot Application with Testcontainers being built using Nix, because of a build time dependency on a working docker environment.
I put my efforts into my GitHub in order to ...
1
vote
1
answer
47
views
Adding local dependencies to contenerized application built by gradlew
I' working on an application that I run locally via Docker. Most important part of the Dockerfile is:
FROM eclipse-temurin:17 as source
COPY . /data
WORKDIR /data
FROM source as build
RUN ./gradlew ...
-1
votes
1
answer
307
views
Build jar with Docker using gradle->gradlew
I'm new with Docker, I'm study and learning....So.....sorry for the bad code. I'm trying to generate the jar when I'm building my docker image; I would like to use a basic image of openjdk and use ...
0
votes
0
answers
40
views
How to push image of springboot project on docker hub
I am following this tutorial to push my jar file of springboot project to docker hub i.e
https://hub.docker.com/
project structure looks like
Dockerfile
FROM openjdk:11-jre-slim
COPY build/libs/...
1
vote
0
answers
121
views
Error during Docker build: "./gradlew: not found"
I'm currently attempting to build a Spring Boot application using Docker. I executed the build command as follows:
docker build -t myapp:latest -f Dockerfile2 .
Below is the Dockerfile I've crafted ...
0
votes
2
answers
188
views
Run a docker image built by Jib with multiple main class and choose which main class to execute at Runtime
I have a java gradle project with multiple main class, i want to build a docker image with Jib and chose which main class to run when i execute docker run.
Is it possible to do this with Jib or i have ...