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

No vendor packages available for buildkit installation #10068

Closed
afbjorklund opened this issue Dec 30, 2020 · 5 comments
Closed

No vendor packages available for buildkit installation #10068

afbjorklund opened this issue Dec 30, 2020 · 5 comments
Labels
co/runtime/containerd kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@afbjorklund
Copy link
Collaborator

afbjorklund commented Dec 30, 2020

Unfortunately there are no packages available for "buildkit" yet, only for containerd.

This makes a lot more cumbersome to install and maintain it, using only the tarballs.

Compare:

# install docker
RUN sh -c "echo 'deb https://download.docker.com/linux/ubuntu focal stable' > /etc/apt/sources.list.d/docker.list" && \
    curl -L https://download.docker.com/linux/ubuntu/gpg -o docker.key && \
    apt-key add - < docker.key && \
    clean-install docker-ce docker-ce-cli containerd.io

With:

ARG BUILDKIT_VERSION="v0.8.1"

# install buildkit
RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/' | sed 's/armhf/arm-v7/') \
 && echo "Installing buildkit ..." \
    && export BUILDKIT_BASE_URL="https://github.com/moby/buildkit/releases/download/${BUILDKIT_VERSION}" \
    && curl -sSL --retry 5 --output /tmp/buildkit.tgz "${BUILDKIT_BASE_URL}/buildkit-${BUILDKIT_VERSION}.linux-${ARCH}.tar.gz" \
    && tar -C /usr/local -xzvf /tmp/buildkit.tgz \
    && rm -rf /tmp/buildkit.tgz \
    && chmod 755 /usr/local/bin/buildctl \
    && chmod 755 /usr/local/bin/buildkit-runc \
    && chmod 755 /usr/local/bin/buildkitd

See moby/buildkit#1794


It would be even better if upstream provided individual deb packages, but beggars can't be choosers...

docker-ce

  • /usr/bin/dockerd

docker-ce-cli

  • /usr/bin/docker

containerd.io

  • /usr/bin/containerd
  • /usr/bin/ctr
  • /usr/bin/runc

buildkit

  • /usr/bin/buildkitd
  • /usr/bin/buildctl
  • /usr/bin/buildkit-runc

Another general problem with the vendor packages (unlike the system packages) is the lack of source code.

docker.io
containerd
runc
buildkit

But this goes for the other vendor packages, too.

$ apt-get source containerd.io
Reading package lists... Done
E: Unable to find a source package for containerd.io
@afbjorklund afbjorklund added kind/feature Categorizes issue or PR as related to a new feature. priority/backlog Higher priority than priority/awaiting-more-evidence. co/runtime/containerd labels Dec 30, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 30, 2021
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 29, 2021
@spowelljr spowelljr added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels May 26, 2021
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Aug 4, 2021

This got even worse with the systemd units, even more files to download and manually install...

https://github.com/moby/buildkit/tree/master/examples/systemd

Some input for #11327, that wants to go back to more primitive packaging also for containerd/docker ?

The tarballs are only slightly better than downloading "raw" binaries

@afbjorklund
Copy link
Collaborator Author

/remove-lifecycle rotten

@afbjorklund
Copy link
Collaborator Author

This is to be expected (long-term), there are no upstream packages for containerd either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/runtime/containerd kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

4 participants