mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
4b0251ba5b
Change-Id: Ib1961d829ef1418a9b64307c73a01bab3520279a
23 lines
990 B
Makefile
23 lines
990 B
Makefile
ENGINE=docker
|
|
#ENGINE=podman
|
|
|
|
# Example mounting source code directory into container
|
|
# (lets you "work on the code used to bootstrap" a bit easier)
|
|
SOURCES=$(HOME)/Code
|
|
EXTRA=-v $(HOME)/haiku:/work/src/haiku -v $(HOME)/buildtools:/work/src/buildtools
|
|
|
|
default:
|
|
${ENGINE} build . -t docker.io/haiku/bootstrap
|
|
clean:
|
|
${ENGINE} ps -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker kill {}
|
|
${ENGINE} ps -a -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker rm {}
|
|
${ENGINE} volume rm bootstrap_work
|
|
init:
|
|
${ENGINE} run -v bootstrap_work:/work docker.io/haiku/bootstrap prep
|
|
crosstools:
|
|
${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap crosstools
|
|
bootstrap:
|
|
${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap bootstrap
|
|
enter:
|
|
${ENGINE} run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap /bin/bash -l
|