Comments (4)
This should be possible with multiple execution
configurations for the plugin. The stop
goal already takes care for shutting down multiple containers.
There should be at least a good example in the documentation how using multiple containers should be possible.
Maybe using a dedicated <containers>
configuration element is less verbose is easier to understand. Also, one would have more control over the startup order (which is important when it comes to linking containers).
from docker-maven-plugin.
Am I misunderstanding something, or isn't this possible already?
Currently I'm doing something like
<configuration>
<images>
<image>
<name>tpires/neo4j</name>
<run>
<ports><port>17474:7474</port></ports>
<wait…/>
</run>
</image>
<image>
<name>${docker.org}/${docker.image.prefix}candidate:${project.version}</name>
<run>
<ports><port>candidate.port:8080</port></ports>
<env>
<NEO4J>http://${docker.ip}:17474</NEO4J>
</env>
<wait…/>
</run>
</image>
</images>
</configuration>
in a start execution. That indeed spins up two containers.
[INFO] DOCKER> Created and started container fd210e86ada0 [tpires/neo4j]
[INFO] DOCKER> Waited on url http://192.168.59.103:17474 11147 ms
[INFO] DOCKER> Created and started container 5280d88f2574 [trifork/job_candidate:1.0-SNAPSHOT]
[INFO] DOCKER> Waited on url http://192.168.59.103:49202/health 18969 ms
from docker-maven-plugin.
Ah, sorry, forgot to clean up this issue. In fact the main reason for changing the the configuration format in 0.10.1 was to introduce the possibility to start multiple containers.
from docker-maven-plugin.
Thanks for pointing this out ;-)
from docker-maven-plugin.
Related Issues (20)
- LogRequestor : Replace `com.google.common.base.Charsets.UTF_8` with `StandardCharsets.UTF_8` HOT 5
- Turning on JIB mode breaks multi-assembly images HOT 2
- <run><wait> no longer working correctly
- Cannot find default setter in class io.fabric8.maven.docker.config.ImageConfiguration while trying to execute docker:start goal HOT 1
- Can't use <packaging>docker</packaging> in a multi-module project HOT 1
- Version 0.44.0 fails to use the `<args>` configuration to populate the Docker build-args HOT 5
- support Dockerfile RUN <<EOF HOT 1
- docker:push failed with ARG in FROM HOT 5
- DockerComposeServiceWrapper : Use `isEmpty()` to check collection is empty HOT 3
- WatchService : Anonymous `new Runnable()` can be replaced with lambda HOT 5
- Quickstarts : Improve `it/spring-boot-with-jib` integration test HOT 2
- Ability to
- Error Encountered When Building Multi-Architecture Docker Images Using docker-maven-plugin HOT 1
- Write portPropertyFile as soon as the container is started
- Unable to push docker images to Nexus using "docker-maven-plugin" HOT 1
- External Compose and Wait seems not working HOT 1
- Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray
- Follow settings ingored unless specified from command line HOT 1
- How to mount secrets on build?
- Fix ARG referencing another ARG in FROM statement HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-maven-plugin.