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

Bootstrap without docker v2 #116

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Bootstrap without docker v2 #116

merged 2 commits into from
Sep 11, 2024

Conversation

aajith-arista
Copy link
Collaborator

I have based on top of Andrew's PR here: #109
On top of his commit, I've done a few things:

  1. Addressed Snaipe's comments on the original PR (except for share-net)
  2. Used a more recent version of the tarball, but downloading it from a stashed copy in Arista's artifactory instance.

yabberyabber and others added 2 commits September 11, 2024 09:00
With this change we bootstrap the workspace creation environment using a
centos rootfs rather than pulling down a docker container. This has the
following benefits:

 - docker and golang are no longer in the dependency set which should
result in less cache churn
 - we no longer need a finalizer to set up yum repos --- creating these
files in their own snapshot and overlaying it makes it much more
cache-friendly and avoids us needing to mount the whole workspace in a
tmpfs in order to let the finalizer run
 - we can check the content hash of the thing we download (in theory we
trust quay.io to not change their docker image tags, but we have no way
of checking this)
 - The artifactory URL can now be overridden via cluster config -- although
the default value of artifactory.infra.corp.arista.io is preserved

It does add a bit of complexity that we start with a centos container to
bootstrap an alma container. However I don't think this is really an
issue as the content that we are installing comes from our internal alma
repositories. The only thing we are using centos for is to run dnf and
resolve/install dependencies into our alma images.
Address Snaipe's comments:
  - Elaborate on the description for bootstrap image
  - Compare checksums wrt to a file.
  - Combine bootstrap image generation sub images into a single one
    to avoid caching the same thing multiple times, the steps are fast.
  - Create mountpoints in the bootstrap image

Additional changes:
  - CHECKSUM file, dnf/yum repo configuration and helper scripts are now
    checked in to the repo as opposed to autogenerated in the build step to
    make maintenance/upgrades easier and the barney.yaml a bit more
    readable.
  - Instead of downloading the tarball from the internet, download it
    from a stashed copy in a local artifactory repo.
@aajith-arista aajith-arista merged commit 370609d into main Sep 11, 2024
2 checks passed
@aajith-arista aajith-arista deleted the aajith-eext-update branch September 11, 2024 12:56
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

Successfully merging this pull request may close these issues.

2 participants