Comments (4)
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.
If you want to work on that, I can assign the issue to you.
from docker-maven-plugin.
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.
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)
- Can't figure out how to set the image tag HOT 3
- How to actually get verbose output from docker:build? HOT 8
- Quickstarts : Update Spring Boot With Jib Quickstart Spring Version to latest 2.x version HOT 1
- Build fails with podman and extra labels
- RegistryServiceTest : remove unused variable `hasImage` and `dockerFileUtilMockedStatic` HOT 3
- 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
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.