Skip to content

Commit

Permalink
Merge pull request kata-containers#10390 from microsoft/danmihai1/new…
Browse files Browse the repository at this point in the history
…-rootfs-image-mariner

local-build: add ability to build rootfs-image-mariner
  • Loading branch information
fidencio authored Oct 8, 2024
2 parents 083b2f2 + 63c1f81 commit 80196c0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-kata-static-tarball-amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- stratovirt
- rootfs-image
- rootfs-image-confidential
- rootfs-image-mariner
- rootfs-initrd
- rootfs-initrd-confidential
- rootfs-initrd-mariner
Expand Down
4 changes: 4 additions & 0 deletions tools/packaging/kata-deploy/local-build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ BASE_TARBALLS = serial-targets \
virtiofsd-tarball
BASE_SERIAL_TARBALLS = rootfs-image-tarball \
rootfs-image-confidential-tarball \
rootfs-image-mariner-tarball \
rootfs-initrd-confidential-tarball \
rootfs-initrd-mariner-tarball \
rootfs-initrd-tarball \
Expand Down Expand Up @@ -149,6 +150,9 @@ rootfs-image-tarball: agent-tarball
rootfs-image-confidential-tarball: agent-tarball pause-image-tarball coco-guest-components-tarball kernel-confidential-tarball
${MAKE} $@-build

rootfs-image-mariner-tarball: agent-tarball
${MAKE} $@-build

rootfs-initrd-mariner-tarball: agent-tarball
${MAKE} $@-build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ options:
stratovirt
rootfs-image
rootfs-image-confidential
rootfs-image-mariner
rootfs-initrd
rootfs-initrd-confidential
rootfs-initrd-mariner
Expand Down Expand Up @@ -342,6 +343,11 @@ install_image_confidential() {
install_image "confidential"
}

#Install cbl-mariner guest image
install_image_mariner() {
install_image "mariner"
}

#Install guest initrd
install_initrd() {
local variant="${1:-}"
Expand Down Expand Up @@ -1086,6 +1092,8 @@ handle_build() {

rootfs-image-confidential) install_image_confidential ;;

rootfs-image-mariner) install_image_mariner ;;

rootfs-initrd) install_initrd ;;

rootfs-initrd-confidential) install_initrd_confidential ;;
Expand Down
3 changes: 3 additions & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ assets:
confidential:
name: *default-image-name
version: *default-image-version
mariner:
name: "cbl-mariner"
version: "2.0"
nvidia-gpu:
name: *default-image-name
version: "jammy"
Expand Down

0 comments on commit 80196c0

Please sign in to comment.