Questions tagged [maven-docker-plugin]

Use this tag for questions about fabric8io/docker-maven-plugin

Maven plugin for building Docker images and managing containers for integration tests.

Github page

25 questions
10
votes
2 answers

Deploy a .war into a Docker image by fabric8io docker-maven-plugin

I am very new to Docker and the fabric8io docker-maven-plugin. I am having some hard times to deploy a .war into my image derived by the jboss/wildfly one. I can succesful build my image shipped with .war by command line but I can't do the same by…
Francesco
  • 1,742
  • 5
  • 44
  • 78
7
votes
2 answers

Error pushing docker hub using spotify/dockerfile-maven-plugin

I have a maven project that is built as a docker image. I'm using spotify/dockerfile-maven to build this image and push it to docker.hub automatically on on mvn clean install. The build phase passes without any problems. But on push I have this…
Sergii Bishyr
  • 8,331
  • 6
  • 40
  • 69
5
votes
1 answer

Pass port number from docker-maven-plugin to spring property

I'm developing Spring Data JPA project that targets a MySQL database, and I want to run end-to-end integration tests from Maven. So far, I've configured io.fabric8.docker-maven-plugin to spin up a MySQL container during pre-integration-test phase.…
Lewis Watson
  • 543
  • 1
  • 4
  • 15
3
votes
1 answer

Why docker-maven-plugin fails to pick up correct jar file to include in docker image?

As far as I understand the build flow: maven-assembly-plugin builds /target/my-artifact-1.0-SNAPSHOT-jar-with-dependencies.jar maven-jar-plugin builds /target/my-artifact-1.0-SNAPSHOT.jar (not sure why we need it) docker-maven-plugin suppose to…
J.Olufsen
  • 13,415
  • 44
  • 120
  • 185
3
votes
1 answer

Clarification on Maven profiles and Phases

In my maven project, I have multiple maven profiles. In each profile, I have docker-maven-plugin and maven-failsafe-plugin. This is how I have bound goals and phases. docker-maven-plugin pre-integration-test
Bee
  • 12,251
  • 11
  • 46
  • 73
2
votes
2 answers

Build private maven repo using Docker

I have jar files for my web application. I need to have those dependency jars in my local maven repository so that I can use them in my applications. It would be nice to run the local maven repo as a container in my development machine.
Santhosh Tpixler
  • 361
  • 4
  • 12
2
votes
0 answers

How fix EOF during docker push command?

I am trying to push docker image via dockerfile-maven. Just couple of hours everything works but know I got enexception: [INFO] Step 1/9 : FROM ubuntu:xenial [INFO] [ERROR] Get https://registry-1.docker.io/v2/: EOF [WARNING] An…
Cherry
  • 31,309
  • 66
  • 224
  • 364
2
votes
3 answers

How to setup AWS ECS + dockerfile-maven-plugin?

I am trying to setup my project's pom.xml and Maven's settings.xml to automate the process of generating a Docker image and pushing it to my AWS ECS private Docker repository. In my pom.xml, I added the dockerfile-maven-plugin and configured it as…
Sam
  • 11,799
  • 9
  • 49
  • 68
2
votes
0 answers

Automated Integration testing for a spark job

I am using the FailSafe plugin of Maven along with Maven-Docker-Plugin to implement automated integration testing for a spark job. My project is checked in here https://github.com/abhitechdojo/maven-scala-spark My docker file to start the spark job…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
2
votes
1 answer

Maven Docker Plugin Connection refused

I am using this maven docker plugin https://github.com/wouterd/docker-maven-plugin My pom.xml file looks like net.wouterdanes.docker docker-maven-plugin
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
1
vote
0 answers

variable is not correct get in jenkins docker.inside()

In docker plugin parallel situation, the x didn't get correct output in docker.image.inside, and always get the last element in the array, is there any solution? Here is the example code, node { x_array = [1,2] x_map = [:] image = "centos:latest" …
Rice
  • 11
  • 2
1
vote
1 answer

Illegal character causes spring boot microservice build to fail during creation of docker image

I am establishing inter communication with Micro services in a Spring boot application. The response is generated in JSON format and logged in log file using logback.xml. This is further leveraged on ELK side with docker-maven plugins. While…
1
vote
0 answers

Cannot push to an insecure registry using http using docker-maven-plugin

I am trying to push the image using fabric8 docker-maven-plugin Here is the relevant part of the plugin configuration io.fabric8 docker-maven-plugin
Sniper
  • 1,428
  • 1
  • 12
  • 28
1
vote
1 answer

Docker mvn plugin make {}->unix://localhost:80: Broken pipe

I implement application using spring-boot and try to build docker image using this mvn plugin. org.springframework.boot
wthamira
  • 2,032
  • 2
  • 21
  • 40
1
vote
1 answer

Kafka Docker and port forwarding from 9092 to 9093

I have configured Kafka + ZooKeeper via maven docker plugin https://dmp.fabric8.io/: wurstmeister/zookeeper:latest zookeeper 2181:2181
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
2