Questions tagged [docker-maven-plugin]

To be used with programming questions that uses docker-maven-plugin ( A Maven plugin for building and pushing Docker images )

The Docker Maven Plugin was the initial Maven plugin used at Spotify for building Docker images out of Java services. This plugin is capable of generating a Dockerfile for you based on configuration in the pom.xml file for things like the FROM image, resources to add with ADD/COPY, etc.

You can use this plugin to create a Docker image with artifacts built from your Maven project. For example, the build process for a Java service can output a Docker image that runs the service.

Note that the authors recommend that new projects use Dockerfile Maven Plugin instead.

73 questions
0
votes
2 answers

Unable to Push to Azure Registry with docker-maven-plugin

I've followed this tutorial: https://www.baeldung.com/spring-boot-azure However, although I set the credentials in settings.xml for maven, I still get this error: [WARNING] Failed to push apiefrontdoor.azurecr.io/apiefrontdoor, retrying in 10…
0
votes
0 answers

Error loading class 'com.spotify.docker.Resource'

I am trying to build and push a docker image using docker maven plugin spotify version 1.0.0. But, the docker build has failed with the below error, Caused by: org.apache.maven.plugin.PluginConfigurationException: Unable to parse configuration of…
Thiru
  • 11
  • 1
  • 4
0
votes
1 answer

Add MANIFEST.MF to docker image with fabric8 docker-maven-plugin

I've successfully created a docker image with fabric8 plugin, using a custom Dockerfile, for a Servlet WebApp. The image is based on tomcat, and so I need to put the app in tomcat/webapps To optimize the image I'm not inserting the war directly, but…
lelmarir
  • 593
  • 2
  • 7
  • 24
0
votes
0 answers

In maven-docker-plugin '~/.m2' cannot be relativized, cannot resolve arbitrary user home paths

I have a parent pom written by someone else, it is used for building and running a docker image locally. When I am trying to build using parent pom.xml, I am getting following error '~/.m2' cannot be relativized, cannot resolve arbitrary user home…
Onix
  • 101
  • 1
0
votes
1 answer

Maven dockerfile plugin not able to tag the image

I am trying to integrate maven dockerfile plugin with my project. I have multiple modules under my maven project. I have modified the pom.xml for the module I want to build and tag images as below. Running mvn dockerfile:build command builds a…
Abhi.G
  • 1,801
  • 5
  • 20
  • 35
0
votes
1 answer

Unable to push image on docker hub using maven plugin

I am using io.fabric8 docker-maven-plugin for building and pushing docker image to a registry hub.docker.com. The image needs to be pushed on a repository (For eg. xyz) which lies under an organization (For eg. demo). This is my plugin from pom.xml.…
user3520629
  • 185
  • 1
  • 3
  • 15
0
votes
1 answer

Spring Boot Docker Maven Plugin with module dependencies

I am using docker-maven-plugin(Spotify) to build my docker images generated by Dockerfile in my Spring Boot project. If the project has no any module dependency it works well. But if a module is dependent to another like:
Denny
  • 11
  • 3
0
votes
0 answers

Use one docker container for several modules in maven multi module build

I have a multi module project like this moduleA moduleB moduleC moduleD I have to use docker container for building modules moduleB and moduleC. The…
Maxim Popov
  • 1,167
  • 5
  • 9
0
votes
0 answers
0
votes
0 answers

Docker - unable to build image - fork/exec docker-containerd-shim: no such file or directory

I have docker installed on RHEL 7.3. When I try & build the images for services using java as base image it builds them successfully. But when I try & build my UI image using node:boron as base image, it fails saying : fork/exec…
Somesh Gupta
  • 277
  • 1
  • 4
  • 20
0
votes
2 answers

Waiting for RabbitMQ docker container to start with docker-maven-plugin

How can I tell docker-maven-plugin to wait for the RabbitMQ container to fully start up before running integration tests? This is the plugin configuration I am using in the pom.xml: io.fabric8
0
votes
0 answers

SpringBoot Docker unable to find valid certification path to requested target

I am using DockerToolBox. I am trying to use Spring-Boot with Docker. I am following this tutorial. pom.xml for my project is like this :
-2
votes
1 answer

NOT BUG!!!!IT'S A MISTAKE!!!!why docker-maven-plugin give me an error dockerfile which had an '&'

when i build my springboot project with docker. I got this error in my idea output. Step 1/8 : FROM openjdk:8u171 ---> 8c80ddf988c8 Step 2/8 : MAINTAINER zhujiaxin<783725554@qq.com> ---> Using cache ---> 47b81dfbadd7 Step 3/8 : RUN mkdir…
PaulZhu
  • 89
  • 8
1 2 3 4
5