mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-10 13:56:48 +00:00
18 lines
394 B
Bash
Executable File
18 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
ASTER_ROOT_DIR=${SCRIPT_DIR}/../..
|
|
VERSION=$( cat ${ASTER_ROOT_DIR}/VERSION )
|
|
|
|
if [ "$1" = "intel-tdx" ]; then
|
|
IMAGE_NAME="asterinas/osdk:${VERSION}-tdx"
|
|
else
|
|
IMAGE_NAME="asterinas/osdk:${VERSION}"
|
|
fi
|
|
|
|
docker run -it -v ${ASTER_ROOT_DIR}:/root/asterinas ${IMAGE_NAME}
|