add dynlay

This commit is contained in:
Mikaël Cluseau
2025-07-21 01:41:03 +02:00
parent 52c23653ac
commit 7d02d8f932
7 changed files with 731 additions and 24 deletions

View File

@ -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