2018-02-03 15:24:05 +00:00
|
|
|
.PHONY: docker-image docker-shell
|
|
|
|
|
|
|
|
BASE_DIR = $(shell pwd)
|
2018-02-05 04:02:09 +00:00
|
|
|
BASE_BINDMOUNT = type=bind,source=$(BASE_DIR),target=/home/builder/citadel
|
2018-02-03 15:24:05 +00:00
|
|
|
|
|
|
|
all: docker-image docker-shell
|
|
|
|
|
|
|
|
docker-image:
|
|
|
|
docker build -t citadel-builder scripts/docker
|
|
|
|
|
|
|
|
docker-shell:
|
2018-02-05 04:02:09 +00:00
|
|
|
docker run -it --mount $(BASE_BINDMOUNT) citadel-builder
|
|
|
|
|
|
|
|
user-rootfs:
|
|
|
|
mkdir -p build/debootstrap
|
|
|
|
docker run -it --privileged --mount $(BASE_BINDMOUNT) citadel-builder sudo scripts/build-user-rootfs-stage-one | tee build/debootstrap/build-user-rootfs.log
|
2018-02-03 15:24:05 +00:00
|
|
|
|