3rdparty/docker/bootstrap: Fix defaults to be more generic and engine selection

Change-Id: I8a1e3c6bd641ea08a5a06985389269d708d94655
This commit is contained in:
Alexander von Gluck IV 2019-07-01 14:06:16 -05:00
parent e399a8832d
commit 0dbb417d43

View File

@ -4,13 +4,13 @@ ENGINE=docker
# 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
#EXTRA=-v $(SOURCES)/haiku:/work/src/haiku -v $(SOURCES)/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} ps -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} ${ENGINE} kill {}
${ENGINE} ps -a -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} ${ENGINE} rm {}
${ENGINE} volume rm bootstrap_work
init:
${ENGINE} run -v bootstrap_work:/work docker.io/haiku/bootstrap prep