Questions tagged [spring-boot-docker-plugin]
7 questions
12
votes
3 answers
Passing JAVA_OPTS to spring boot application through docker-compose
I am creating a docker image using below configuration. Once image is ready i want to pass JAVA_OPTS to my docker container, so it can be passed to my spring boot application. Whenever i try to bring up the container i am getting "runtime create…

user2701108
- 219
- 1
- 2
- 10
6
votes
5 answers
fabric8 springboot full example
I am trying to figure out how to build a spring boot docker image using fabric8 docker-maven-plugin. The documentation contains bit and bytes and I'm obviously missing something. Does anyone have a full pom.xml example for it?

YaOg
- 1,748
- 5
- 24
- 43
5
votes
1 answer
Docker run with -e not working.Failed to pass spring.profiles.active in the run command
I am facing one issue with my docker file.Image build was successful but while running I am getting an error because the active profile I am setting in the run command is not reflecting.
# Get java
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG…

Anoop M Nair
- 1,057
- 1
- 13
- 31
3
votes
0 answers
how to use spring boot actuator on a docker swarm or docker stack deployment
I am exploring spring boot on docker. I have a spring boot application with actuator enabled to see the metrics. I am deploying the app to a docker container either as a stack deployment or swarm, i have 3 replicas of the spring boot app and they…

ari
- 61
- 6
3
votes
2 answers
Generic Docker Image and Dockerfile for SpringBoot Apps using Gradle/Maven
According to https://spring.io/guides/gs/spring-boot-docker/, we can create Docker Images for SpringBoot applications using hard-coded name and version of the application. For instance:
src/main/docker/Dockerfile
FROM…

Marcello DeSales
- 21,361
- 14
- 77
- 80
1
vote
0 answers
Is it possible to set cache-from for bootBuildImage gradle task
So, I am creating a Spring Boot Application Docker Image.
As I see, there is a plugin available for it which can be just invoked as a gradle task as
./gradlew bootBuildImage
If I am using this plugin, how do I mention the --cache-from option as if…

blue_man
- 43
- 8
0
votes
1 answer
How to use instruction property in springbootapplication extension with bmuschko/gradle-docker-plugin?
https://bmuschko.github.io/gradle-docker-plugin/
I am trying to use HEALTHCHECK inside build.gradle using the above gradle-docker-plugin for a spring-boot app as following.
docker {
springBootApplication {
baseImage =…

ABHISHEK KUMAR
- 71
- 1
- 10