GoogleContainerTools / GoogleContainerTools/jib

Jib should maintain hard-links and symlinks

Open
#2,275 5 comments 2 reactions 0 assignees View on GitHub
area/jib-cli area/jib-core area/jib-gradle-plugin area/jib-maven-plugin enhancement priority:p3 question
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

The hardlinking supported by the Spotify docker-client can [result in large image-size savings](https://twitter.com/jvanzyl/status/1226511828110467072) for situations using lots of hard-links (https://github.com/jvanzyl/dockerfile-maven/issues/2). Jib should [track hard-links](https://github.com/jvanzyl/docker-client/blob/8da77cf5952f1819e8afeda0cebd2b61bac858c7/src/main/java/com/spotify/docker/client/CompressedDirectory.java#L302-L309). Jib should also preserve symlinks (perhaps only if they reference within the layer?).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.