Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Hard links image size bug, also a COPY bug? #357

Open
@LouisStAmour

Description

Hi folks,

I thought I'd make a newer Alpine image and maybe install another docker tool while I was at it.

I ended up with a test Dockerfile like the following:

FROM alpine:3.13.2
COPY --from=gcr.io/uber-container-tools/makisu:v0.4.1 . .
RUN apk add --no-cache git skopeo
ENTRYPOINT /bin/sh

But Makisu produced a docker image that was 437 MB, and 373 MB of that was in the /usr/libexecgit-core directory according to dive.

By comparison, the above image when produced with Docker for Mac or Kaniko is 85 MB according to Dive and looks basically identical in both. Now, Kinako has its own speed issues, and I liked the caching options and simplicity of the code for Makisu, but if the git package for Alpine uses hard links and Makisu can't handle that, well, I'd rather not copy around an extra 300+ MB just for git's hard links.

Bonus bug: the second line COPY --from=gcr.io/uber-container-tools/makisu:v0.4.1 . . does not do what it's supposed to with Makisu. I expected it to copy the /makisu-internal folder and contents from the image into the new image. Both Kaniko and Docker for Mac do what I expect, but Makisu v0.4.1 seems to treat it as a no-op, seemingly copying nothing at that step.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions