From 38e7c2be62d14b1d23ccbf842d15f020242ae082 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Thu, 25 May 2023 20:09:36 +0100 Subject: [PATCH] doc: Update ccv0.sh to reflect changes - Update prefix - Add new requirement environment variables - Use new ci scripts Signed-off-by: stevenhorsman --- docs/how-to/ccv0.sh | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/docs/how-to/ccv0.sh b/docs/how-to/ccv0.sh index 6877cfb8ad..6631bae719 100755 --- a/docs/how-to/ccv0.sh +++ b/docs/how-to/ccv0.sh @@ -1,6 +1,6 @@ #!/bin/bash -e # -# Copyright (c) 2021, 2022 IBM Corporation +# Copyright (c) 2021, 2023 IBM Corporation # # SPDX-License-Identifier: Apache-2.0 # @@ -24,6 +24,10 @@ export KATA_HYPERVISOR="${KATA_HYPERVISOR:-qemu}" export KUBERNETES=${KUBERNETES:-"no"} export AGENT_INIT="${AGENT_INIT:-${TEST_INITRD:-no}}" export AA_KBC="${AA_KBC:-offline_fs_kbc}" +export KATA_BUILD_CC=${KATA_BUILD_CC:-"yes"} +export TEE_TYPE=${TEE_TYPE:-} +export PREFIX="${PREFIX:-/opt/confidential-containers}" +export RUNTIME_CONFIG_PATH="${RUNTIME_CONFIG_PATH:-${PREFIX}/share/defaults/kata-containers/configuration.toml}" # Allow the user to overwrite the default repo and branch names if they want to build from a fork export katacontainers_repo="${katacontainers_repo:-github.com/kata-containers/kata-containers}" @@ -66,8 +70,6 @@ fi [ -d "${BATS_TEST_DIRNAME}" ] && source "${BATS_TEST_DIRNAME}/../../confidential/lib.sh" -export RUNTIME_CONFIG_PATH=/etc/kata-containers/configuration.toml - usage() { exit_code="$1" cat <