add dynlay
This commit is contained in:
17
test-dkl
17
test-dkl
@ -3,9 +3,9 @@ set -ex
|
||||
|
||||
dkl=target/debug/dkl
|
||||
|
||||
test=${1:-log-clean}
|
||||
test=${1:-dynlay}
|
||||
|
||||
export RUST_LOG=debug
|
||||
export RUST_LOG=debug,rsmount=info
|
||||
|
||||
case $test in
|
||||
apply-config)
|
||||
@ -19,13 +19,22 @@ case $test in
|
||||
cat tmp/log/bash.log
|
||||
;;
|
||||
|
||||
log-ls) $dkl log --log-path tmp/log bash ls ;;
|
||||
log-cat) $dkl log --log-path tmp/log bash cat 20250720_12 20301231_23 ;;
|
||||
log-ls)
|
||||
$dkl log --log-path tmp/log bash ls
|
||||
;;
|
||||
log-cat)
|
||||
$dkl log --log-path tmp/log bash cat 20250720_12 20301231_23
|
||||
;;
|
||||
log-clean)
|
||||
$dkl log --log-path tmp/log bash ls -l
|
||||
$dkl log --log-path tmp/log bash cleanup 0
|
||||
;;
|
||||
|
||||
dynlay)
|
||||
mkdir -p tmp/system
|
||||
$dkl dynlay --layers-dir tmp/dynlay --chroot tmp/system kubernetes v1.33.3_containerd.2.0.5
|
||||
;;
|
||||
|
||||
*) echo 1>&2 "unknown test: $test"; exit 1 ;;
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user