Giter Site home page Giter Site logo

Comments (4)

rhuss avatar rhuss commented on August 18, 2024

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.

mwl avatar mwl commented on August 18, 2024

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.

rhuss avatar rhuss commented on August 18, 2024

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.

rhuss avatar rhuss commented on August 18, 2024

Thanks for pointing this out ;-)

from docker-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.