haiku/3rdparty/docker/bootstrap/Makefile
Alexander von Gluck IV c5287be1f3 3rdparty/bootstrap: kill any running bootstrap containers before rm
Change-Id: Id36226f121d4a75adc4799ae6cd8cddff2149b10
2018-11-20 14:53:13 -06:00

15 lines
686 B
Makefile

default:
docker build . -t docker.io/haiku/bootstrap
clean:
docker ps -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker kill {}
docker ps -a -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker rm {}
docker volume rm bootstrap_work
init:
docker run -v bootstrap_work:/work docker.io/haiku/bootstrap prep
crosstools:
docker run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap crosstools
bootstrap:
docker run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap bootstrap
enter:
docker run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap /bin/bash -l