aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-06-14 19:45:11 +0200
committerTom Smeding <tom@tomsmeding.com>2022-06-14 19:45:11 +0200
commit3f5b3415ac1d15beccafc5be3f62a3d39de27557 (patch)
treeea8b803000b292a0b91a5bdc9cc8907b1f184493
parentfe2fe0d7af3569411420ba875757b71784a1e6d1 (diff)
Limit disk usage
-rwxr-xr-xbwrap-files/start.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bwrap-files/start.sh b/bwrap-files/start.sh
index 769eaea..31f55d1 100755
--- a/bwrap-files/start.sh
+++ b/bwrap-files/start.sh
@@ -9,7 +9,10 @@ ghcup_base=$(ghcup whereis basedir)
chroot="${filesdir}/ubuntu-base"
args=(
- --tmpfs /
+ # 10MiB disk
+ # Note: this --size option is implemented in
+ # https://github.com/containers/bubblewrap/pull/509
+ --size 10485760 --tmpfs /
--ro-bind "${chroot}/bin" /bin
--ro-bind "${chroot}/usr/bin" /usr/bin
--ro-bind "${chroot}/usr/lib" /usr/lib