docker/bootstrap: A few tweaks to your life easier
Change-Id: I591e108f9a5007423a5dee541e94b2be2342c5a8
This commit is contained in:
Vendored
+15
-8
@@ -1,14 +1,21 @@
|
|||||||
|
ENGINE=docker
|
||||||
|
#ENGINE=podman
|
||||||
|
|
||||||
|
# Example mounting source code directory into container
|
||||||
|
# (lets you "work on the code used to bootstrap" a bit easier)
|
||||||
|
#EXTRA=-v $(HOME)/Code/haiku:/work/src/haiku
|
||||||
|
|
||||||
default:
|
default:
|
||||||
docker build . -t docker.io/haiku/bootstrap
|
${ENGINE} build . -t docker.io/haiku/bootstrap
|
||||||
clean:
|
clean:
|
||||||
docker ps -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker kill {}
|
${ENGINE} 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 {}
|
${ENGINE} ps -a -q --filter=ancestor=docker.io/haiku/bootstrap | xargs -I {} docker rm {}
|
||||||
docker volume rm bootstrap_work
|
${ENGINE} volume rm bootstrap_work
|
||||||
init:
|
init:
|
||||||
docker run -v bootstrap_work:/work docker.io/haiku/bootstrap prep
|
${ENGINE} run -v bootstrap_work:/work docker.io/haiku/bootstrap prep
|
||||||
crosstools:
|
crosstools:
|
||||||
docker run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap crosstools
|
${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap crosstools
|
||||||
bootstrap:
|
bootstrap:
|
||||||
docker run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap bootstrap
|
${ENGINE} run -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap bootstrap
|
||||||
enter:
|
enter:
|
||||||
docker run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work docker.io/haiku/bootstrap /bin/bash -l
|
${ENGINE} run -it -e TARGET_ARCH=$(TARGET_ARCH) -v bootstrap_work:/work ${EXTRA} docker.io/haiku/bootstrap /bin/bash -l
|
||||||
|
|||||||
Reference in New Issue
Block a user