Skip to content

feat(flake.nix): switch dogfood dev image to buildNixShellImage from dockerTools - #16223

Merged
ThomasK33 merged 2 commits into
mainfrom
01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools
Jan 28, 2025
Merged

ThomasK33 merged 2 commits into
mainfrom
01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Jan 22, 2025 •

Copy link
Copy Markdown
Member

Replace Depot build action with Nix for Nix dogfood image builds

The dogfood Nix image is now built using Nix's native container tooling instead of Depot. This change:

  • Adds Nix setup steps to the GitHub Actions workflow
  • Removes the Dockerfile.nix in favor of a Nix-native container build
  • Updates the flake.nix to support building Docker images
  • Introduces a hash file to track Nix-related changes
  • Updates the vendorHash for Go dependencies

Change-Id: I4e011fe3a19d9a1375fbfd5223c910e59d66a5d9
Signed-off-by: Thomas Kosiewski [email protected]

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ThomasK33
ThomasK33 marked this pull request as ready for review January 22, 2025 10:34
@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch from 8226db4 to 32d3437 Compare January 22, 2025 10:57

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but my knowledge of nix is minimal so maybe get someone else to review that part
Thanks!

Comment thread .github/workflows/dogfood.yaml Resolved
Comment thread .github/workflows/dogfood.yaml Resolved

@matifali matifali left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few suggestions, but LGTM.
Not a nix expert, so I can not validate that part of the PR.

Comment thread .github/workflows/dogfood.yaml Resolved
@matifali

Copy link
Copy Markdown
Contributor

Also .dockerignore may be unused now. It was perviously being used by docker build for nix image.

@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch 2 times, most recently from a11ecf6 to 56640ad Compare January 23, 2025 14:05
Comment thread flake.nix Resolved
Comment thread dogfood/contents/nix.hash Resolved
@ThomasK33
ThomasK33 requested a review from johnstcn January 24, 2025 10:04
@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch from 56640ad to c18c4ca Compare January 24, 2025 11:40
Comment thread flake.nix Resolved
Comment thread flake.nix Resolved

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from existing comments.

@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch 5 times, most recently from c1f3eaa to cb87bcf Compare January 27, 2025 18:22
@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch 3 times, most recently from d38027c to dafaf96 Compare January 28, 2025 14:34
…dockerTools

Change-Id: I4e011fe3a19d9a1375fbfd5223c910e59d66a5d9
Signed-off-by: Thomas Kosiewski <[email protected]>
Change-Id: Id4cb8943ae1bf40d0b24eb899bd58801f28e851a
Signed-off-by: Thomas Kosiewski <[email protected]>
@ThomasK33
ThomasK33 force-pushed the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch from dafaf96 to 0ed90c6 Compare January 28, 2025 14:57
@ThomasK33
ThomasK33 merged commit 1336925 into main Jan 28, 2025
@ThomasK33
ThomasK33 deleted the 01-22-feat_flake.nix_switch_dogfood_dev_image_to_buildnixshellimage_from_dockertools branch January 28, 2025 15:38
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants