-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow copying of directory to new layer in image. #213
Comments
@loosebazooka @TadCordle @patflynn How does this sound? The alternative is to allow to user to define multiple directories to copy. |
I feel like the naming could be improved; I'm not sure why, but I feel like calling it "adding files to the image" gets the point across better than "copying files". Maybe instead of Also, should there be more symmetry between the two inner parameters? When I see something start with "from" I usually expect the destination to start with "to". |
For the naming, the main reasoning behind using For the inner parameters, perhaps we can call it jib {
copy 'sourcefolder' '/path/on/image'
} |
Ah, didn't realize Dockerfiles had a |
This will be taken care of by #473 |
The current way of adding arbitrary files would be to include them in the
src/main/resources
directory. However, that adds the files to the classpath, which may not be desirable.The use case of being able to add arbitrary files include being able to add agent libraries to the image, such as JRebel.
The proposed configuration for Maven is:
The
fromDirectory
's contents would be placed in the directory on the image atpathOnImage
.For Gradle:
The text was updated successfully, but these errors were encountered: