Giter Site home page Giter Site logo

Comments (4)

rhuss avatar rhuss commented on August 18, 2024

If I understand you right, you want to have the possibility to export directories from the images when building an image.

This sounds a good idea. But is it possible to specify the host directory when building an image ? I think that's only an option when starting a container, in the image you can only specify the diretories/volumes to export.

For the naming, I probably would leave

<volumes>
   <export>/path/in/container</export>
</volumes>

We already have some 'double' config tags for <run> and <build>: <ports> and <env> so I guess its not more confusing than that ;-)

Also the external property configuration handler could benefit so that when you have a properties

docker.volumes.1=/container1
docker.volumes.2=/host:/container2

then /container1 and /container2 would be exposed during build, and /container2 would be mapped to /host while running a container. This fits to the model for port mapping where it is handled similarly.

from docker-maven-plugin.

rhuss avatar rhuss commented on August 18, 2024

If you want to work on that, I can assign the issue to you.

from docker-maven-plugin.

jgangemi avatar jgangemi commented on August 18, 2024

sounds good - about 1/2 way done i think. need to add this to the property handler.

it doesn't appear that you can distinguish between child elements in a list, so i have to use a separate nesting element. right now i'm going with bind b/c that seems closer to docker terminology (looking at the help) but i can change it to whatever.

from docker-maven-plugin.

rhuss avatar rhuss commented on August 18, 2024

Added this to integration and will be available in 0.10.6 (or maybe 0.11.0 because of the configuration syntax changes).

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.