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

Feedback: Slow build #702

Open
dlaidlaw opened this issue Nov 22, 2023 · 2 comments
Open

Feedback: Slow build #702

dlaidlaw opened this issue Nov 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dlaidlaw
Copy link

Describe the bug
Not so much a bug as feedback about a step that is extremely slow compared to the equivalent docker command.

Just providing this is feedback for what I have experienced in a typical usage.

Steps to reproduce
finch build . -t al2023:finch
vs
docker build . -t al2023:docker

See below for the Dockerfile.

Expected behavior
The build command to finish in near the same amount of time as the equivalent docker command.

The RUN dnf line of the Dockerfile (line 4) took:

With finch: 4572 seconds. (one hour, 18 minutes)
With Docker: 50 seconds

Screenshots or logs

finch-support-20231122131420.zip

Additional context

Running on Mac OS

The Dockerfile:

FROM public.ecr.aws/amazonlinux/amazonlinux:2023 as build

RUN mkdir /sysroot
RUN dnf --releasever=$(rpm -q system-release --qf '%{VERSION}') \
  --installroot /sysroot \
  -y \
  --setopt=install_weak_deps=False \
  install \
  bash awscli-2 openssl openssl-devel wget jq unzip tar gzip vim nano bash-completion less findutils

FROM scratch
COPY --from=build /sysroot /
WORKDIR /root
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENTRYPOINT ["/usr/bin/bash"]

Thanks for looking.

@dlaidlaw dlaidlaw added the bug Something isn't working label Nov 22, 2023
@mharwani
Copy link
Member

Hi, thank you for the feedback. I'm able to reproduce this on my machine. Build takes 6314s (1hr, 45m) with Finch and 66s with Docker. Usually, builds are not this slow, so this seems specific to the Dockerfile. Looking into the root cause.

@mharwani mharwani self-assigned this Nov 27, 2023
@dlaidlaw
Copy link
Author

In case you are wondering where the dnf command came from, see this AWS documentation: https://docs.aws.amazon.com/linux/al2023/ug/barebones-containers.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants