-
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
How can I COPY a file to docker image's directory '/usr/local/bin/'? #1876
Comments
extraDirectories can‘t solve my problem. @briandealwis .I need copy a file into a folder of docker i mage. I didn't found a way of extraDirectories to solve it. extraDirectories:
But I wan't to do this.
copy the the file wait-for-it.sh into docker images's /usr/local/wait-for-it.sh. |
@andyzhaozhao you can place the |
@briandealwis @chanseokoh Thank you. But I don't wan't to change my src codes. So high coupling of it. The 'ops' codes invade into the 'dev' codes. I think this‘s not |
Then, how about making a custom base image that has |
Will Jib Support COPY in the pom.xml now? |
I'd say that is basically what |
@chanseokoh thank you as same. But ,either preparing a docker image which contains the wait-for-it.sh or putting script in other ops step is not a simple way to solve my problem. |
How can I control the destination by extraDirectories ? @chanseokoh |
UPDATE: #1581 is fixed, so now you can specify the target path inside an image when copying files with For now, you have to layout the file structure as you would want to see it in the image. For example, let's say locally you have |
Is there a way to not override the entire destination folder but just copy the files? Currently below configuration overrides the destination folder. So if existing files in the base image under
|
@ayhanap if so, it must be that |
@chanseokoh Yeah seems it is pointing to Can confirm if I use |
In Dockerfile,I can do this by "COPY xxx.sh /usr/local/bin/". How do it in Jib?
The text was updated successfully, but these errors were encountered: