mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 21:36:48 +00:00
14 lines
395 B
Bash
Executable File
14 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
ASTER_SRC_DIR=${SCRIPT_DIR}/../..
|
|
CARGO_TOML_PATH=${SCRIPT_DIR}/../../Cargo.toml
|
|
VERSION=$( cat ${ASTER_SRC_DIR}/VERSION )
|
|
IMAGE_NAME=asterinas/asterinas:${VERSION}
|
|
|
|
docker run -it --privileged --network=host --device=/dev/kvm -v ${ASTER_SRC_DIR}:/root/asterinas ${IMAGE_NAME}
|