2018-02-03 10:24:05 -05:00
|
|
|
.PHONY: docker-image docker-shell
|
|
|
|
|
|
|
|
BASE_DIR = $(shell pwd)
|
2018-02-04 23:02:09 -05:00
|
|
|
BASE_BINDMOUNT = type=bind,source=$(BASE_DIR),target=/home/builder/citadel
|
2018-02-03 10:24:05 -05:00
|
|
|
|
|
|
|
all: docker-image docker-shell
|
|
|
|
|
|
|
|
docker-image:
|
|
|
|
docker build -t citadel-builder scripts/docker
|
|
|
|
|
|
|
|
docker-shell:
|
2018-02-04 23:02:09 -05: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 10:24:05 -05:00
|
|
|
|