Giter Site home page Giter Site logo

Comments (2)

jgangemi avatar jgangemi commented on August 18, 2024

i looked into doing this using the maven properties plugin but i can't figure out how to cause the initialize phase to run w/o doing this mvn initialize docker:start or how i could get the read properties goal to run before docker:start does.

from docker-maven-plugin.

rhuss avatar rhuss commented on August 18, 2024

Indeed with the new 'external' configuration this could be already possible (with some minor limitation concerning port- and environment mapping).

As you said, you can try the properties-maven-plugin but this needs to be run together with the docker goal. So you have either to provide both as goals (as you did) or bind both plugins to the same execution phase and then call the goal for this execution phae (e.g. bind both goals to the 'install' phase and they will run in the order they are declared in the pom.xml). The first solution is tedious, the second not nice because you have to bind to a standard maven goal and use this.

I think the best solution would be to add to PropertyConfigHandler to a new configuration propertyFile as extra configuration (given in the properties argument of this handler), and then use this for configuration (probably as a fallback if a property is not given directly in the pom.xml which should take precedence).

If you like, you can work on this, I'm still on the logging stuff.

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.