mirror of
https://github.com/Noratrieb/captain.git
synced 2026-01-14 22:45:01 +01:00
stuff
This commit is contained in:
parent
f0ffa77500
commit
e82f2076b8
10 changed files with 329 additions and 5 deletions
|
|
@ -6,9 +6,8 @@ cd "$(dirname "$0")"
|
|||
|
||||
target_tuple="$(uname -m)-unknown-linux-musl"
|
||||
|
||||
cargo build -p quarterdeck --target "$target_tuple"
|
||||
cargo build -p cog --target "$target_tuple"
|
||||
cargo build -p coreutils --target "$target_tuple"
|
||||
cargo build --target "$target_tuple" \
|
||||
-p quarterdeck -p cog -p coreutils -p tcpecho
|
||||
|
||||
target_dir="../target/$target_tuple/debug"
|
||||
|
||||
|
|
@ -25,6 +24,15 @@ install_bin quarterdeck
|
|||
install_bin cog
|
||||
install_bin net
|
||||
install_bin ls
|
||||
install_bin user
|
||||
install_bin tcpecho
|
||||
|
||||
mkdir -p rootfs/etc
|
||||
cp /etc/resolv.conf rootfs/etc/resolv.conf
|
||||
|
||||
mkdir -p rootfs/etc/services
|
||||
|
||||
cat > rootfs/etc/services/tcpecho2000.toml <<EOF
|
||||
name = "tcpecho2000"
|
||||
exec = [ "/bin/tcpecho", "0.0.0.0:2000" ]
|
||||
EOF
|
||||
|
|
|
|||
|
|
@ -10,4 +10,6 @@ exec bwrap \
|
|||
--unshare-uts \
|
||||
--unshare-cgroup \
|
||||
--as-pid-1 \
|
||||
--uid 1 \
|
||||
--gid 1 \
|
||||
/bin/quarterdeck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue