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

Barney image changes for devel workflow #118

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Conversation

aajith-arista
Copy link
Collaborator

@aajith-arista aajith-arista commented Jul 23, 2024

This PR achieves two things:

  1. Sets up a devel eext image to be used by developers either with bdr or directly with buses
  2. Make the eext code more bsy cache aware

Separate out bootstrap code in barney.yaml to three parts in three
different scripts:
1. Extract(boostrap/extract/extract.bash): Extracting bootstrap image from the tarball.
2. Setup dnf configuration(bootstrap/eext-repos/generate.bash): dnf
   configuration for both base image bootstrap and for install within
   base-image is done by this stage.
3. Install rpms(bootstrap/install-rpms/install-rpms.bash): The old
   install-rpms script is now reading rpms to be installed from the
   source files rpms-common and rpms-<conf> in the
   bootstrap/install-rpms directory.

Also added a base-image-devel ref to be used by developers for
interactive workflow.
Base automatically changed from aajith-eext-update-snapshots to main September 11, 2024 13:01
Using Snaipe's new bfg feature that allows file inlining to make the
bootstrap, base image build and eext builds more bsy cache aware.

Roll-With: barney.ci/barneyfile#203a8fea892dbd8d9058c7a9fce98d974f8ea99b
The go generator would pull in the current repo's commit hash into the
snapshot hash. Instead, we'll running go build ourselves on a floor with
the go toolchain and modules already present. We also map in the subset
of sources needed to build the eext static binary.

.%go/modules would have sufficed if not for the fact that it also pulls
in all sources to do go mod tidy. So we just enable the network and
forego any benefit from the go generator module cache.
manith-arista
manith-arista previously approved these changes Sep 23, 2024
@aajith-arista aajith-arista merged commit a0e72a8 into main Sep 23, 2024
2 checks passed
@aajith-arista aajith-arista deleted the aajith-eext-devworkflow branch September 23, 2024 15:42
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