Giter Site home page Giter Site logo

Comments (5)

wouterd avatar wouterd commented on July 18, 2024

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.

rhuss avatar rhuss commented on July 18, 2024

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.

rhuss avatar rhuss commented on July 18, 2024

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.

rhuss avatar rhuss commented on July 18, 2024

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.

rhuss avatar rhuss commented on July 18, 2024

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)

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.