Skip to content

[WIP] Investigate call site of image-fetcher#8034

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/find-image-fetcher-call-site
Draft

[WIP] Investigate call site of image-fetcher#8034
Copilot wants to merge 3 commits intomainfrom
copilot/find-image-fetcher-call-site

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

  • Create image-fetcher/ Go module with main.go, go.mod, go.sum
  • Update packer.mk to add build-image-fetcher target and dependencies
  • Update parts/linux/cloud-init/artifacts/cse_install.sh to use /opt/azure/containers/image-fetcher in pullContainerImage()
  • Update vhdbuilder/packer/cleanup-vhd.sh to remove image-fetcher after VHD build
  • Update vhdbuilder/packer/install-dependencies.sh to use image-fetcher for NVIDIA driver image
  • Update vhdbuilder/packer/packer_source.sh to copy image-fetcher binary
  • Update packer JSON files (8 files) to upload the image-fetcher binary
  • Update vhdbuilder/packer/imagecustomizer/azlosguard/azlosguard.yml
  • Add e2e/benchmark_container_create.sh benchmark script
  • Update .pipelines/scripts/verify_shell.sh BASH_ONLY_LIST for benchmark script
  • Add image-fetcher/.gitignore to exclude built binary
  • Run make generate to update snapshot test data
  • All tests passing (go test ./pkg/agent/...)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits March 6, 2026 21:21
…uild

The call site of image-fetcher is in pullContainerImage() in
parts/linux/cloud-init/artifacts/cse_install.sh, replacing the
direct ctr image pull with /opt/azure/containers/image-fetcher.

Also used in install-dependencies.sh for the NVIDIA driver image pull.

The image-fetcher Go binary uses containerd's Fetch() API to download
image blobs into the content store without unpacking, which significantly
reduces VHD disk usage (21G -> 6G). Images below 150 MiB are fully
pulled and unpacked. The binary is placed at /opt/azure/containers/image-fetcher
during VHD build and cleaned up afterwards.

Co-authored-by: Devinwong <13621569+Devinwong@users.noreply.github.com>
…tignore

Co-authored-by: Devinwong <13621569+Devinwong@users.noreply.github.com>
Copilot stopped work on behalf of Devinwong due to an error March 6, 2026 21:22
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