Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

volumes does not seem to do anything #90

Closed
andyp1per opened this issue Dec 4, 2015 · 5 comments
Closed

volumes does not seem to do anything #90

andyp1per opened this issue Dec 4, 2015 · 5 comments
Labels

Comments

@andyp1per
Copy link
Contributor

I can't seem to get the volumes command to do anything useful. I'm trying to copy files out of my container back into userland. Do you have an example and/or test for this?

@alexec alexec added the bug label Dec 7, 2015
@alexec
Copy link
Owner

alexec commented Dec 7, 2015

Hi Andy,

Presumably you meant volumes in the conf.yml? Do you have an example? I'm not likely to get a chance to look at it in the next few days as I'm moving house, but I'll probably have time in the future.

Alex

@andyp1per
Copy link
Contributor Author

Hi Alex,
I'm actually pretty sure that volumes doesn't do what I want since they are only available at runtime. What I want is some way of pulling artifacts out of the built VM at build time. It seems that docker cp would achieve this, but there is no binding for it. I'd be interested in adding this if you thought it was a good idea and could point me at where in the code it should sit

@alexec
Copy link
Owner

alexec commented Dec 8, 2015

Docker only mounts volumes at run time, so must start the container.

You could use the Antrun plugin to do a docker cp to get the asset you.
You'll want to set a name on the container.

If you want to contribute:

https://github.com/alexec/docker-maven-plugin/blob/master/CONTRIBUTING.md

You'll want to know a bit about working with Maven plugins, but it is a
useful skill to learn.

On 8 December 2015 at 08:56, Andy Piper [email protected] wrote:

Hi Alex,
I'm actually pretty sure that volumes doesn't do what I want since they
are only available at runtime. What I want is some way of pulling artifacts
out of the built VM at build time. It seems that docker cp would achieve
this, but there is no binding for it. I'd be interested in adding this if
you thought it was a good idea and could point me at where in the code it
should sit


Reply to this email directly or view it on GitHub
#90 (comment)
.

@alexec
Copy link
Owner

alexec commented Jan 16, 2016

Have you tried the new copy goal?

@andyp1per
Copy link
Contributor Author

Yeah, that's why I wrote it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants