mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-05 20:09:47 +08:00
24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2026 Pooya Parsa <pooya@pi0.io>
|
|
#
|
|
# Prepares the work disk of test/work-bench.mjs: a copy of the profile disk
|
|
# (Node, npm, Bun, Claude Code; .agents/a64/performance.md, Measuring) with
|
|
# what the Perl, Python, C build and shell rows need, from Debian's mirrors
|
|
# (the guest needs the network once):
|
|
# cp --sparse=always vendor/build/profile/debian-node.img WORK.img
|
|
# node js/cli.ts --distro debian --data WORK.img --mem 2048 --mount test:/t:ro \
|
|
# --timeout 3600 --input '{8}sudo sh /t/work-bench-setup.sh; sudo poweroff -f\n'
|
|
# It prints the installed versions (dpkg -l) and SETUP-DONE.
|
|
set -e
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends perl python3 python3-pygments \
|
|
python3-jinja2 python3-docutils gcc make libc6-dev file
|
|
apt-get clean
|
|
# apt-cache rebuilds its cache from the lists on every call without this (10 s).
|
|
apt-cache gencaches
|
|
dpkg -l | awk '/^ii/ { print $2, $3 }'
|
|
sync
|
|
echo SETUP-DONE
|