Skip to content

Update the script to save a portable docker image#39

Merged
sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:build_docker
Jul 6, 2026
Merged

Update the script to save a portable docker image#39
sonikajindal merged 1 commit into
sonic-net:masterfrom
sreeiyer-1:build_docker

Conversation

@sreeiyer-1

@sreeiyer-1 sreeiyer-1 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

At the moment, the build ends by generating sonic-alpinevs.img.gz. The user has to run the build_container.sh script to bundle the alpine docker and the VM, which is part of the sonic-alpine and not part of the image. This is not a problem in the dev environment, but when someone uses the sonic-alpinevs.img.gz from the official build, they are forced to clone sonic-alpine to build the image.

The new build_alpinevs_docker_save.sh script takes sonic-alpinevs.img.gz and saves the docker image along with the VM, so that a user can load it directly. The old build_alpinevs_container.sh now wraps a docker load so that the existing users of the script can do exactly what they were doing earlier.

An after-build hook will be added to slave.mk which will call the build_alpinevs_docker_save.sh via the kvm_image.mk

Unit tested by running the arbitration test,

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Signed-off-by: Sreemoolanathan Iyer <sbiyer@google.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@sreeiyer-1
sreeiyer-1 marked this pull request as ready for review July 6, 2026 13:32
@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@sonikajindal
sonikajindal merged commit 5c78f98 into sonic-net:master Jul 6, 2026
5 checks passed
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.

3 participants