Giter Club home page Giter Club logo

Comments (3)

jgangemi avatar jgangemi commented on May 18, 2024

so i thought about this a little more this morning and realized this doesn't account for exposing ports as part of building the image although i still think this works, the property handler would just need to be a bit smarter and know if it saw an entry w/o any colons, it should be used in the build process.

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

The example above can be already written as

docker.ports.5678 = 8080
docker.ports.0.0.0.0\:80 = 80
docker.ports.host.port = 22

but you are right, this doesn't look very nice. BTW, if you are using these properties in property files you need to escape colons, too.

If you use properties for building docker images, mapping likes those above are taken into account (in this case 8080, 80 and 22 are exposed). If I understand you right, you want also expose a lonely port (without any colon). Do you have a use case where an exposed port should not be exported during the integration test ?

BTW, for the env part there also a limitation: With docker.env properties you set the environment for building and running an image (which is also not optimal, of course). One could add docker.envbuild and docker.envrun for environment variables which are set only for the building and running, respectively (and docker.env for variables to be set in both cases).

Since the property stuff is not yet released, if you like you can go ahead and adapt PropertyConfigHandler for using ports as a list ....

from docker-maven-plugin.

rhuss avatar rhuss commented on May 18, 2024

Any thoughts about this ? I want to get this in into 0.10.5 right now because it's a new feature.

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.