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

Kata: Release v3.2.0.azl0 for both vanilla and CC based on aligned sources #6942

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPECS/kata-containers-cc/kata-containers-cc.signatures.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Signatures": {
"mariner-coco-build-uvm.sh": "4f2be6965d8c4d7919fd201a68160fc8ab02a1be50a336abbfea13f16a6ffb89",
"kata-containers-cc-0.6.3-cargo.tar.gz": "7ff6c5f7f7aa31a99ea5d837876291d886b16c32f21b6d65d044fd398abff1e6",
"kata-containers-cc-0.6.3.tar.gz": "1f366ce70bf83a239a7ec99334506adb28c3199157b4370840c3685378a34268"
"kata-containers-cc-3.2.0.azl0-cargo.tar.gz": "7ff6c5f7f7aa31a99ea5d837876291d886b16c32f21b6d65d044fd398abff1e6",
"kata-containers-cc-3.2.0.azl0.tar.gz": "78f3749c848c77f0d54aa16a4f29209a07f3d4af30664c0d9212300ac364aaec"
}
}
49 changes: 32 additions & 17 deletions SPECS/kata-containers-cc/kata-containers-cc.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%global runtime_make_vars DEFMEMSZ=256 \\\
sprt marked this conversation as resolved.
Show resolved Hide resolved
DEFSHAREDFS_CLH_SNP_VIRTIOFS=none \\\
DEFSTATICSANDBOXWORKLOADMEM=1792 \\\
DEFSNPGUEST=true \\\
SKIP_GO_VERSION_CHECK=1

%global agent_make_vars LIBC=gnu \\\
Expand All @@ -9,16 +9,15 @@
%global debug_package %{nil}

Name: kata-containers-cc
Version: 0.6.3
Release: 4%{?dist}
Version: 3.2.0.azl0
Release: 1%{?dist}
Summary: Kata Confidential Containers package developed for Confidential Containers on AKS
License: ASL 2.0
Vendor: Microsoft Corporation
URL: https://github.com/microsoft/kata-containers
Source0: https://github.com/microsoft/kata-containers/archive/refs/tags/cc-%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://github.com/microsoft/kata-containers/archive/refs/tags/%{name}-%{version}.tar.gz
Source2: %{name}-%{version}-cargo.tar.gz
Source3: mariner-coco-build-uvm.sh
Source0: https://github.com/microsoft/kata-containers/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-%{version}-cargo.tar.gz
Source2: mariner-coco-build-uvm.sh

ExclusiveArch: x86_64

Expand Down Expand Up @@ -70,7 +69,7 @@ This package contains the the tooling and files required to build the UVM
%prep
%autosetup -p1 -n %{name}-%{version}
pushd %{_builddir}/%{name}-%{version}
tar -xf %{SOURCE2}
tar -xf %{SOURCE1}
popd

%build
Expand Down Expand Up @@ -138,7 +137,7 @@ pushd %{_builddir}/%{name}-%{version}
rm tools/osbuilder/.gitignore
rm tools/osbuilder/rootfs-builder/.gitignore

install -D -m 0755 %{SOURCE3} %{buildroot}%{osbuilder}/mariner-coco-build-uvm.sh
install -D -m 0755 %{SOURCE2} %{buildroot}%{osbuilder}/mariner-coco-build-uvm.sh
install -D -m 0644 VERSION %{buildroot}%{osbuilder}/VERSION
install -D -m 0644 ci/install_yq.sh %{buildroot}%{osbuilder}/ci/install_yq.sh
install -D -m 0644 versions.yaml %{buildroot}%{osbuilder}/versions.yaml
Expand Down Expand Up @@ -185,14 +184,27 @@ install -D -m 0755 kata-monitor %{buildroot}%{coco_bin}/kata-monitor
install -D -m 0755 kata-runtime %{buildroot}%{coco_bin}/kata-runtime
install -D -m 0755 data/kata-collect-data.sh %{buildroot}%{coco_bin}/kata-collect-data.sh

# Note: we deploy two configurations - the additional one is for policy/snapshotter testing w/o SEV SNP or IGVM
install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh.toml
# We deploy 3 configurations:
# configuration-clh-snp: production Kata-CC - IGVM & image, confidential_guest=true, sev_snp_guest=true
# configuration-clh-snp-debug: debug Kata-CC - kernel & image, confidential_guest=true, sev_snp_guest=false
# configuration-clh (symlinked to by configuration.toml): vanilla Kata - kernel & initrd, confidential_guest=false, sev_snp_guest=false
sprt marked this conversation as resolved.
Show resolved Hide resolved
install -D -m 0644 config/configuration-clh-snp.toml %{buildroot}/%{defaults_kata}/configuration-clh-snp.toml
install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
install -D -m 0644 config/configuration-clh.toml %{buildroot}/%{defaults_kata}/configuration-clh.toml

# adapt upstream config files
# change paths with locations specific to our distribution
sed -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh.toml
sed -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp.toml
# Adapt configuration files:
# - Change paths with locations specific to our distribution.
sed --follow-symlinks -i 's|/usr|/opt/confidential-containers|g' %{buildroot}/%{defaults_kata}/configuration-clh*.toml
sprt marked this conversation as resolved.
Show resolved Hide resolved
# - Set up configuration-clh-snp-debug. Note that kernel and image are already
# set through configuration-clh.toml.in.
sed -i 's|-igvm.img|-igvm-debug.img|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
sed -i '/^#confidential_guest =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
sed -i '/^#enable_debug =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
sed -i '/^#debug_console_enabled =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
sed -i 's|shared_fs = "virtio-fs"|shared_fs = "none"|g' %{buildroot}/%{defaults_kata}/configuration-clh-snp-debug.toml
# - Set up configuration-clh.
sed -i '/^#initrd =/s|^#||g' %{buildroot}/%{defaults_kata}/configuration-clh.toml
sed -i '/^image =/s|^|#|g' %{buildroot}/%{defaults_kata}/configuration-clh.toml
sprt marked this conversation as resolved.
Show resolved Hide resolved
popd

# tardev-snapshotter
Expand Down Expand Up @@ -275,8 +287,11 @@ install -D -m 0755 %{_builddir}/%{name}-%{version}/tools/osbuilder/image-builder
%exclude %{osbuilder}/tools/osbuilder/rootfs-builder/ubuntu

%changelog
* Fri Feb 02 2024 CBL-Mariner Servicing Account <[email protected]> - 0.6.3-4
- Bump release to rebuild with go 1.21.6
* Mon Feb 12 2024 Aurelien Bombo <[email protected]> - 3.2.0.azl0-1
- Use Microsoft sources based on upstream Kata version 3.2.0.

* Fri Feb 02 2024 CBL-Mariner Servicing Account <[email protected]> - 0.6.3-4
- Bump release to rebuild with go 1.21.6

* Tue Jan 30 2024 Archana Choudhary <[email protected]> - 0.6.3-3
- Remove kernel-uvm-cvm(-devel) dependency
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading