16018afcdSAlexander von Gluck IVENGINE=docker 2*7bbfd0ffSAlexander von Gluck IVVER=bullseye-slim-1 36018afcdSAlexander von Gluck IV#ENGINE=podman 46018afcdSAlexander von Gluck IV 56018afcdSAlexander von Gluck IV# Example mounting source code directory into container 66018afcdSAlexander von Gluck IV# (lets you "work on the code used to bootstrap" a bit easier) 74b0251baSAlexander von Gluck IVSOURCES=$(HOME)/Code 85c9ee5d0SAlexander von Gluck IVEXTRA=-v $(SOURCES)/haiku:/work/src/haiku -v $(SOURCES)/buildtools:/work/src/buildtools 96018afcdSAlexander von Gluck IV 10131f0990SAlexander von Gluck IVdefault: 11*7bbfd0ffSAlexander von Gluck IV ${ENGINE} build . --no-cache -t docker.io/haiku/bootstrap:${VER} 12131f0990SAlexander von Gluck IVclean: 13*7bbfd0ffSAlexander von Gluck IV ${ENGINE} ps -q --filter=ancestor=docker.io/haiku/bootstrap:${VER} | xargs -I {} ${ENGINE} kill {} 14*7bbfd0ffSAlexander von Gluck IV ${ENGINE} ps -a -q --filter=ancestor=docker.io/haiku/bootstrap:${VER} | xargs -I {} ${ENGINE} rm {} 156018afcdSAlexander von Gluck IV ${ENGINE} volume rm bootstrap_work 165c9ee5d0SAlexander von Gluck IVprep: 17*7bbfd0ffSAlexander von Gluck IV ${ENGINE} run -v bootstrap_work:/work:exec ${EXTRA} docker.io/haiku/bootstrap:${VER} prep 18131f0990SAlexander von Gluck IVcrosstools: 19*7bbfd0ffSAlexander von Gluck IV ${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work:exec ${EXTRA} docker.io/haiku/bootstrap:${VER} crosstools 20131f0990SAlexander von Gluck IVbootstrap: 21*7bbfd0ffSAlexander von Gluck IV ${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work:exec ${EXTRA} docker.io/haiku/bootstrap:${VER} bootstrap 22131f0990SAlexander von Gluck IVenter: 23*7bbfd0ffSAlexander von Gluck IV ${ENGINE} run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work:exec ${EXTRA} docker.io/haiku/bootstrap:${VER} /bin/bash -l 24