-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (38 loc) · 1.14 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL := /bin/bash
# https://unix.stackexchange.com/questions/235223/makefile-include-env-file
include .env
export
MAKEFILE_LIST = Makefile
# https://blog.testdouble.com/posts/2017-04-17-makefile-usability-tips/#step-3-parse-annotations
.PHONY: help
help: ## print this help message with some nifty mojo
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: build-tty
build-tty: ## build tty-only docker image
time docker compose build xen-dev
.PHONY: rebuild-tty
rebuild-tty: ## (re)build tty-only docker image with --no-cache --pull
time docker compose build --no-cache --pull xen-dev
.PHONY: build
build: ## build docker image with X11 support
time docker compose build xen-x11
time docker compose build \
--build-arg IMAGE_BASE=xen/x11 \
xen-dev
.PHONY: rebuild
rebuild: ## rebuild docker image with X11 support
time docker pull ${IMAGE_BASE}
time docker \
compose \
--progress=plain \
build \
--no-cache \
--pull \
xen-x11
time docker \
compose \
--progress=plain \
build \
--build-arg IMAGE_BASE=xen/x11 \
--no-cache \
xen-dev