-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 684 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (20 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: build clean
OUTPUT_DIR=/buildroot_output
DOCKER_RUN=docker run \
--security-opt seccomp=unconfined \
--rm \
-ti \
--volumes-from buildroot_output \
-v $(pwd)/images:$(OUTPUT_DIR)/images \
ghcr.io/dahliaos/build_linux:latest
.PHONY: build
pull:
docker pull ghcr.io/dahliaos/build_linux:latest
volumes:
docker run -i --name buildroot_output ghcr.io/dahliaos/build_linux:latest /bin/true
build: pull volumes
@echo "make O=$(OUTPUT_DIR)"
$(DOCKER_RUN) make O=$(OUTPUT_DIR)
clean:
docker ps -q --filter ancestor=ghcr.io/dahliaos/build_linux:latest | xargs docker stop
docker ps -a -q --filter ancestor=ghcr.io/dahliaos/build_linux:latest | xargs docker rm