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

The extraDirectories copied the file in the wrong place for image #2221

Closed
smallverse opened this issue Jan 8, 2020 · 1 comment
Closed

Comments

@smallverse
Copy link

smallverse commented Jan 8, 2020

Environment:

  • Jib version: 1.8.0
  • Build tool: Maven
  • OS: linux aarch64

Description of the issue:

copy *.so file to image's '/usr/lib/aarch64-linux-gnu/' directory, but always in the directory '/'
image

Expected behavior:

Steps to reproduce:

jib-maven-plugin Configuration:


  <extraDirectories>
                        <paths>
                            <path>src/main/resources/lib/arm64_tf1.10_so</path>
                            <path>/usr/lib/aarch64-linux-gnu/</path>
                        </paths>
 </extraDirectories>


Log output:

Additional Information:

@chanseokoh
Copy link
Member

Hi,

This is working as designed. It's just that your usage is not correct. You are specifying two extra directories, one of which is /usr/lib/aarch64-linux-gnu/. That is, you are copying your local files under /usr/lib/aarch64-linux-gnu/ into the root directory in the image; /usr/lib/aarch64-linux-gnu/ is not a destination directory but an additional extra directory. The destination directory in the image is always /.

So for now, you have to prepare the right directory hierarchy in the configured extra directories. Please see https://stackoverflow.com/a/58661938/1701388 and #1581 to understand how the extra directories feature work.

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

No branches or pull requests

2 participants