xref: /haiku/3rdparty/docker/bootstrap/Makefile (revision 6018afcd9d9c974bd7fbe3d5f09d752e1897d22a)
1*6018afcdSAlexander von Gluck IVENGINE=docker
2*6018afcdSAlexander von Gluck IV#ENGINE=podman
3*6018afcdSAlexander von Gluck IV
4*6018afcdSAlexander von Gluck IV# Example mounting source code directory into container
5*6018afcdSAlexander von Gluck IV# (lets you "work on the code used to bootstrap" a bit easier)
6*6018afcdSAlexander von Gluck IV#EXTRA=-v $(HOME)/Code/haiku:/work/src/haiku
7*6018afcdSAlexander von Gluck IV
8131f0990SAlexander von Gluck IVdefault:
9*6018afcdSAlexander von Gluck IV	${ENGINE} build . -t docker.io/haiku/bootstrap
10131f0990SAlexander von Gluck IVclean:
11*6018afcdSAlexander von Gluck IV	${ENGINE} ps -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker kill {}
12*6018afcdSAlexander von Gluck IV	${ENGINE} ps -a -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker rm {}
13*6018afcdSAlexander von Gluck IV	${ENGINE} volume rm bootstrap_work
14131f0990SAlexander von Gluck IVinit:
15*6018afcdSAlexander von Gluck IV	${ENGINE} run -v bootstrap_work:/work docker.io/haiku/bootstrap prep
16131f0990SAlexander von Gluck IVcrosstools:
17*6018afcdSAlexander von Gluck IV	${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap crosstools
18131f0990SAlexander von Gluck IVbootstrap:
19*6018afcdSAlexander von Gluck IV	${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap bootstrap
20131f0990SAlexander von Gluck IVenter:
21*6018afcdSAlexander von Gluck IV	${ENGINE} run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap /bin/bash -l
22