-
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
Is there a way to add a volume in image ? #1121
Comments
Hi @laurentleseigneur , thanks for your suggestions! Currently we do not provide configuration for setting the volume, but we'll look into this as a potential feature. |
The proposal is to add a Examples: <configuration>
<container>
<volumes>
<volume>/var/job-result-data</volume>
<volume>/var/log/my-app-logs</volume>
<volumes>
</container>
</configuration> jib.container.volumes = ['/var/job-result-data', '/var/log/my-app-logs'] Jib.from(...)
.addVolume('/var/job-result-data')
.addVolume(AbsoluteUnixPath.get('/var/job-result-data'))
.containerize(...); This will add a {
"config": {
...
"Volumes": {
"/var/job-result-data": {},
"/var/log/my-app-logs": {}
},
}
} |
Hey @coollog wanna some help with these? This seems cool. |
Hey @GuustavoPaiva , we’d be glad to have your help on this! Let us know if you have any questions. One thing is that this is probably better done as multiple PRs, like one for the |
@GuustavoPaiva , let us know if you'd like to handle the |
Hey @coollog I plan to do this by the end of this week, is it fine? |
@GuustavoPaiva sure, we welcome your help. |
Fixed by #1278. @GuustavoPaiva thanks again for your help! |
thanks you all for adding this feature in Jib! |
Image don't allows to have a volume:
my project is a CLI that uses a folder as arg to run. I would like to run produced docker image with a volume to bind to some host folder
Expected behavior:
add some volume parameter when configuring maven/gradle plugin
The text was updated successfully, but these errors were encountered: