mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-29 21:03:03 +00:00
Merge pull request #5544 from fidencio/topic/CC-install-rats-tls-tdx
CC | osbuilder: Install rats-tls-tdx
This commit is contained in:
commit
8f56ad57ad
@ -21,13 +21,21 @@ case "$ARCH" in
|
||||
esac
|
||||
|
||||
if [ "${AA_KBC}" == "eaa_kbc" ] && [ "${ARCH}" == "x86_64" ]; then
|
||||
PACKAGES+=" apt gnupg"
|
||||
AA_KBC_EXTRAS="
|
||||
RUN echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu20.04 bionic main' \| tee /etc/apt/sources.list.d/inclavare-containers.list; \
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu20.04/DEB-GPG-KEY.key \| apt-key add -; \
|
||||
source /etc/os-release
|
||||
|
||||
if [ "${VERSION_ID}" == "20.04" ]; then
|
||||
PACKAGES+=" apt gnupg"
|
||||
AA_KBC_EXTRAS="
|
||||
RUN echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} ${OS_VERSION} main' \| tee /etc/apt/sources.list.d/inclavare-containers.list; \
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID}/DEB-GPG-KEY.key \| apt-key add -; \
|
||||
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu ${OS_VERSION} main' \| tee /etc/apt/sources.list.d/intel-sgx.list; \
|
||||
curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key \| apt-key add -; \
|
||||
apt-get update; \
|
||||
apt-get install -y rats-tls
|
||||
apt-get install -y rats-tls-tdx
|
||||
"
|
||||
else
|
||||
echo "rats-tls-tdx is only provided for Ubuntu 20.04, there's yet no packages for Ubuntu ${VERSION_ID}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$(uname -m)" != "$ARCH" ]; then
|
||||
|
@ -34,11 +34,22 @@ EOF
|
||||
rm -rf $rootfs_dir/usr/share/{bash-completion,bug,doc,info,lintian,locale,man,menu,misc,pixmaps,terminfo,zsh}
|
||||
|
||||
if [ "${AA_KBC}" == "eaa_kbc" ] && [ "${ARCH}" == "x86_64" ]; then
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu20.04/DEB-GPG-KEY.key | chroot "$rootfs_dir" apt-key add -
|
||||
cat << EOF | chroot "$rootfs_dir"
|
||||
echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu20.04 bionic main' | tee /etc/apt/sources.list.d/inclavare-containers.list
|
||||
source /etc/os-release
|
||||
|
||||
if [ "${VERSION_ID}" == "20.04" ]; then
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID}/DEB-GPG-KEY.key | chroot "$rootfs_dir" apt-key add -
|
||||
curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | chroot "${rootfs_dir}" apt-key add -
|
||||
cat << EOF | chroot "$rootfs_dir"
|
||||
apt-get update
|
||||
apt-get install -y rats-tls
|
||||
apt-get install -y software-properties-common
|
||||
add-apt-repository universe
|
||||
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | tee /etc/apt/sources.list.d/intel-sgx.list
|
||||
echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} focal main' | tee /etc/apt/sources.list.d/inclavare-containers.list
|
||||
apt-get update
|
||||
apt-get install -y rats-tls-tdx
|
||||
EOF
|
||||
else
|
||||
echo "rats-tls-tdx is only provided for Ubuntu 20.04, there's yet no packages for Ubuntu ${VERSION_ID}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user