Comments (5)
Have you tried the docker volumes approach?
- As in, put a VOLUMES '/path/to/webapps' in the docker file of the container.
- Create an image that only has an ssh server with a known key
- start that image with --rm and --volumes-from [containerid of first container] and scp into the folder.
Although I just prefer to rebuild SUTs and start those up, due to caching in docker that really isn't a huge deal, just have your SUT Dockerfile have only two lines: one FROM the base image and one ADD that adds the app.
I pretty much do most of this in my hippo-docker project. Check the two shell files under src/test/script.
from docker-maven-plugin.
Yes, caching might make this a no-issue (don't have much experience here). And no, I didn't try the scp approach yet. What I find interesting with the 'pure-artifact-image' approach is also that it nicely separates concerns: One image with the artifacts and one with the application server (without a concrete deployment), so that both could be used independently (e.g. with other app-servers for JEE apps or other artifacts). I thought about the scp-way, too, but then I wondered, why not using the Docker API for getting the artifacts via the REST API directly to an image.
But I'm still in brainstorming phase, so no hard opinions yet ;-)
I will look at you hippo-docker project for sure and maybe can give some feedback ;-]
from docker-maven-plugin.
Oops, thought I was on the other issue and didn't remember my ideas anymore ;-).
Currently my tendency are towars option (3) with the 'image-on-the-fly', but I think this is somewhat clear from my previous comments.
Need some time to get a better feeling, though.
Thanks a lot for you comments BTW ...
from docker-maven-plugin.
First implementation finished. It uses the maven assembly plugin as working horse and can create data container based on assembly descriptors, which are quite powerful with respect to mappings and inclusion of other dependencies.
A sample project has been added to illustrate the usage.
Still open: How to specify what should happen with the data image. Up to now the data containers gets removed, but not the image.
from docker-maven-plugin.
Removed the image as well. For using a different approach for getting data and image together, I'll open a new ticket.
from docker-maven-plugin.
Related Issues (20)
- Cannot build multiarch in CI using buildx and DMP 0.43.3 HOT 22
- filter doesn't work in conjunction with buildx HOT 2
- Allow configuring multiple wait urls for the start goal; basic authentication
- [Feature] Need a property to handle default file exclusions while building images HOT 3
- Multi-Architecture Builds Succeed But Fail to Push HOT 34
- Multi-Platform build fails with OrbStack on MacOS HOT 2
- Failed to build the docker image on using "chmod" option HOT 2
- Exception Access Violation caused by org.fusesource.jansi.AnsiConsole.ansiStream
- Volume binding bug in windows HOT 5
- Why docker:push actually builds the image HOT 2
- Add Documentation for `defaultExclusion` configuration property to `src/main/asciidoc/inc/external/_property_configuration.adoc`, too (mind the alphabetical order of the properties, too)
- plugin unable to authenticate with ECR credentials HOT 1
- Windows volume bindings do not work correctly with Rancher Desktop or Podman
- Remove `docker.nocache` system property HOT 2
- docker-maven-plugin cannot correctly execute dockerfile and build it correctly HOT 2
- Request for improved Documentation for dockerHost HOT 2
- Add feature for printing name of image HOT 2
- push fails with NullPointerException HOT 2
- TerserUtil.setElement does not actually respect multiple-cardinality elements HOT 1
- Can't clean all dangling images. HOT 3
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.