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
1
vote
0 answers

using Maven setting.xml to pass build arguments to fabric8io/docker-maven-plugin

we are using fabric8io/docker-maven-plugin to build dockers in our application. because we are sitting behind a corporate firewall we need to setup a proxy for our build. as part of our docker files, we defined ARG HTTPS_PROXY. now to build our…
Raven
  • 713
  • 2
  • 10
  • 21
1
vote
1 answer

docker-maven-plugin with MongoDB image hangs on startup

I'm trying to configure MongoDB image with docker-maven-plugin. This is my configuration: io.fabric8 docker-maven-plugin 0.21.0
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

run maven from eclipse as root

Maven builds for docker plugin (mvn package docker:build) fail because docker must be executed as root (something about opening a socket on port 80). Is there a way I can sudo a maven build launched from eclipse Run As..?
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
1
vote
1 answer

Docker image is not listed though I built using maven docker plugin

I have built docker image using following command. (Used com.spotify:docker-maven-plugin:0.3.3 maven plugin). I am using Docker Tool Box in Windows. mvn clean package docker:build It gave SUCCESS with following description. Successfully built…
PShetty
  • 545
  • 6
  • 14
0
votes
1 answer

Maven plugin crossed execution order

I'm writing some integration tests using failsafe plugin. I want to execute the following: 1) Start Docker (goal start in phase pre-integration-test) 2) Start Spring (goal start in phase pre-integration-test) 3) Tests (phase integration-test) 4)…
0
votes
2 answers

Kafka Docker, docker-maven-plugin, Spring Boot

I'm trying to start Kafka via Docker Maven Plugin https://github.com/fabric8io/docker-maven-plugin I use the following Maven image: https://hub.docker.com/r/wurstmeister/kafka/ This is my Maven config: io.fabric8
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

Multimodule tests which depends on each other

I'm currently writing integration tests between 2 modules: Module A - contains a REST service which can be dockerized via maven plugin Module B - contains integration tests which depends on Module A docker to be up and running So I used failsafe…
user6209005
0
votes
3 answers

Parameterize docker build by passing jar file name from command line

I am trying to parameterize the final jar file name in docker build. I need docker-maven-plugin to take jar file name passed via command line parameter. Maven build is not throwing any error while building image. If I hard-code the jar file name in…
bkrish
  • 627
  • 1
  • 11
  • 23
0
votes
1 answer

maven-docker-plugin: how to get container ip address

I am new to Docker and fabric8's maven-docker-plugin. I want to do some integration tests using two containers, one with my webapp deployed and one with database. UPDATE: I can run both containers using these commands: docker run --name db -p…
Francesco
  • 1,742
  • 5
  • 44
  • 78
-1
votes
1 answer

Can we create docker logging plugin in Java? I know we can do it in Go, but can we do it in java?

I am wondering if there is a way to write the docker logging plugin in Java? As per their documentation here https://docs.docker.com/engine/extend/plugins_logging/, we can create custom docker logging plugin. All I can see is that it has to be in…
jupiter.rm
  • 39
  • 7
1
2